- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
创建微调模型后,如何在/v1/chat/completions 中使用它?我们尝试了这个,但出现了错误
curl --location 'https://api.openai.com/v1/chat/completions' \
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"model": "davinci:ft-xxx-inc:6302f74d2000001f00f80919-2023-04-15-00-47-48",
"messages": [
{
"role": "user",
"content": "How to use apple vision api to recognize text? any example?"
}
]
}'
// Error
{
"error": {
"message": "Invalid URL (POST /v1/chat/completions)",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
最佳答案
您似乎想微调 GPT-3 davinci
模型并将其与 GPT-3.5 API 端点一起使用。
您可以微调 davinci
型号如官方所述OpenAI documentation :
Fine-tuning is currently only available for the following base models:
davinci
,curie
,babbage
, andada
. These are the original models thatdo not have any instruction following training (liketext-davinci-003
does for example). You are also able to continue fine-tuning afine-tuned model to add additional data without having to start fromscratch.
但是... davinci
型号与 /v1/chat/completions
不兼容API端点如官方OpenAI documentation中所述:
关于openai-api - OpenAI ChatGPT (GPT-3.5) API : Can I use a fine-tuned GPT-3 model with the GPT-3. 5 API 端点(错误 : "Invalid URL (POST/v1/chat/completions)")?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76019941/
我是一名优秀的程序员,十分优秀!