Chat Completions
Create a chat completion
Creates a completion for the provided messages. Supports streaming via SSE.
post/v1/chat/completions
Request
- Base URLhttp://localhost:8080
- Auth
- HTTP bearer
- or HTTP basic
- or API key in header x-bf-vk
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "openai/gpt-4"
}Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.