版本控制
https://api.cohere.ai/v1/generate
2021-11-08
之前的版本。需要注意的是,SDK 默认使用的是最新版本,当前为 2022-12-06
。其他方法
2022-12-06
而你输入的是 2022-12-07
,API 将返回错误。Cohere-Version
curl --location --request POST 'https://api.cohere.ai/generate' \
--header 'Authorization: BEARER {apiKey}' \
--header 'Content-Type: application/json' \
--header 'Cohere-Version: 2021-11-08' \
--data-raw '{
"prompt": "Once upon a time in a magical land called",
"max_tokens": 50
}'
版本
2022-12-06
confidences array
),改为使用标签映射(labels map)。2021-11-08
无版本(已弃用)
修改于 2023-10-31 07:15:33