chat/completions
Chat Completion
Follows 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!"
}
]
}'
post/engines/{model}/chat/completions
Request
- Base URLhttps://api.koboillm.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.koboillm.com/engines/{model}/chat/completions
- Auth
- API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
Path parameters
modelstring nullable required
Request body
Example request
{
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
]
}Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 17 revisions of this API.