Hi all!
This is my first attempt at working with fine tuning models. Help me please.
After training the model on the playground, the model works and responds. But when I make API requests, I get an error. Tell me what am I doing wrong? A simple query for ‘gpt-3.5-turbo’ works fine:
`const response = await this.openai.createChatCompletion({
model: ‘gpt-3.5-turbo’, // Specify the model to use
messages, // Provide the array of messages
});
// Return the generated message from the API response
return response.data.choices[0].message;`
But as soon as I insert the name of the trained model, I get a 404 error:
`const response = await this.openai.createChatCompletion({
model: ‘ft-6I8RjswBp8gcP1jC26QPC2Vk’, // Specify the model to use
messages, // Provide the array of messages
});
// Return the generated message from the API response
return response.data.choices[0].message;`
Hi @i.moseich , I believe you’re requesting the model via the Chat API. However fine-tuning should work with the Completion API. OpenAI API
Is this the case?
Hi @sps! I did not expect that the model id is not used in the request, the name of the model is exactly what is displayed on the playground. Everything worked out! Thank you!