I have a problem and a question. I want to add openai Api key to my data and after using this API my php code I want to get training once because I want to make just a chatbot assistant for my relevant data so the user can answer this assistant only to questions related to my data with this API key my question is this. How do I upload it to the API and how do I use that API afterwards?
get your custom model name and replace.
You can change “gpt-3.5-turbo” to “gpt-3.5-turbo-0613:your_company::model_id” (whatever you model is)
You can use the same script above, just change the model name. Does that help?
$data = json_encode([
'model' => 'gpt-3.5-turbo', //CHANGE THIS TO YOUR FINE TUNED MODEL
'messages' => [
['role' => 'system', 'content' => 'You are a helpful assistant.'],
['role' => 'user', 'content' => 'your-prompt-here']
]
]);