abab6.5s-chat
Model Overview
How to Make a Call
API Schema
Creates a chat completion using a language model, allowing interactive conversation by predicting the next response based on the given chat history. This is useful for AI-driven dialogue systems and virtual assistants.
Authorizations
AuthorizationstringRequired
Bearer key
Body
modelundefined · enumRequiredPossible values:
max_tokensnumber · min: 1OptionalDefault:
256streambooleanOptionalDefault:
falsetemperaturenumber · max: 1OptionalDefault:
0.1top_pnumber · min: 0.01 · max: 1OptionalDefault:
0.95mask_sensitive_infobooleanOptionalDefault:
falsetool_choiceany ofOptional
string · enumOptionalPossible values:
response_formatone ofOptional
or
or
Responses
201Success
post
/v1/chat/completions201Success
No content
Code Example (Python)
Last updated