Chat Completion
Changed onFollows the exact same API spec as OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat
curl -X POST http://localhost:4000/v1/chat/completions
-H "Content-Type: application/json"
-H "Authorization: Bearer sk-1234"
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/chat/completions
- AuthAPI key in header x-litellm-api-key
Request body
Example request
{
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
]
}Response
Successful Response
Changes
- breaking
the
/////request property type changed fromobjectto no type - warning
removed the request property
////// - warning
removed the request property
////// - warning
removed the request property
////// - info
added the new optional request property
//// - info
added the new optional request property
//////// - info
added the new optional request property
//// - info
added the new optional request property
//////// - info
added the new optional request property
///////// - info
added the new optional request property
///////// - info
added the new optional request property
///////// - info
added the new optional request property
///////// - info
added the new optional request property
//// - info
added the new optional request property
/////// - info
added the new optional request property
//// - info
added to the
/////request propertyanyOflist - info
request property
///////list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
///////list-of-types was widened by adding typesnullto media typeapplication/json - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking