Explaination
I am trying to send a post request on github gtp4 developer api and i am getting an error :
Note : the model is specified in the request and i’ve tried the request in another application and i am getting a response form the model.
This is the curl request :
curl -X POST “https://models.inference.ai.azure.com/chat/completions”
-H “Content-Type: application/json”
-H “Authorization: Bearer my_api”
-d ‘{
“messages”: [
{
“role”: “system”,
“content”: “”
},
{
“role”: “user”,
“content”: “Can you explain the basics of machine learning?”
}
],
“model”: “gpt-4o”,
“temperature”: 1,
“max_tokens”: 4096,
“top_p”: 1
}’
This my module configuration