I’ve trained a new fine-tune model and upload to openAI.
Now I get a new fine-tune model, so I try to generate a text with a new model.
This is a code
const response = await openai.chat.completions.create({ model: process.env.FINE_TUNE_MODEL, messages: [ { role: "system", content: prompt, }, { role: "user", content: inputText, }, ], temperature: 0, top_p: 1, frequency_penalty: 0, presence_penalty: 0, });
But there’s a 404 error while execute this function.
This is error message:
‘NotFoundError: 404 This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to
use v1/completions?’
How can I use model to generate a text?
I try to generate a text with trained fine-tune model
Denis Prosvietov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.