Openai Chat Completions
Headers
Request body
Example request
{
"model": "meta-llama/Llama-2-70b-chat-hf"
}Response
Successful Response
Changes
Changed in 6 of the 17 revisions of this API.317
- ▲
removed
ChatCompletionToolMessageChatCompletionAssistantMessageChatCompletionUserMessageChatCompletionSystemMessagefrom themessages/items/request propertyanyOflistrequest-property-any-of-removed
- ○
added
ChatCompletionToolMessageChatCompletionAssistantMessageChatCompletionUserMessageChatCompletionSystemMessageto themessages/items/request propertyoneOflistrequest-property-one-of-added
- ▲
- ○
added the new optional request property
modelsnew-optional-request-property
- ○
- ▲
request property
tool_choice/anyOf[subschema #1]/was restricted to a list of enum valuesrequest-property-became-enum
- ○
added the new
autoenum value to the request propertytool_choice/anyOf[subschema #1]/request-property-enum-value-added
- ○
added the new
noneenum value to the request propertytool_choice/anyOf[subschema #1]/request-property-enum-value-added
- ○
added the new
requiredenum value to the request propertytool_choice/anyOf[subschema #1]/request-property-enum-value-added
- ▲
- ○
added the new optional request property
ignore_eosnew-optional-request-property
- ○
- ▲
removed
ChatToolsfrom thetool_choicerequest propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional request property
fail_fastnew-optional-request-property
- ○
added
FunctionToolto thetool_choicerequest propertyanyOflistrequest-property-any-of-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
messages/items/anyOf[subschema #1: ChatCompletionToolMessage]/content/anyOf[subschema #2]/items/prompt_cache_breakpointnew-optional-request-property
- ○
added the new optional request property
messages/items/anyOf[subschema #2: ChatCompletionAssistantMessage]/content/anyOf[subschema #2]/items/prompt_cache_breakpointnew-optional-request-property
- ○
added the new optional request property
messages/items/anyOf[subschema #3: ChatCompletionUserMessage]/content/anyOf[subschema #2]/items/anyOf[subschema #1: ChatCompletionContentPartText]/prompt_cache_breakpointnew-optional-request-property
- ○
added the new optional request property
messages/items/anyOf[subschema #4: ChatCompletionSystemMessage]/content/anyOf[subschema #2]/items/prompt_cache_breakpointnew-optional-request-property
- ○
added the new optional request property
prompt_cache_optionsnew-optional-request-property
- ○
added the new
maxenum value to the request propertyreasoning/anyOf[subschema #1: ChatReasoningSettings]/effort/anyOf[subschema #1]/request-property-enum-value-added
- ○
added the new
maxenum value to the request propertyreasoning_effort/anyOf[subschema #1]/request-property-enum-value-added
- ○
added the new
minimalenum value to the request propertyreasoning/anyOf[subschema #1: ChatReasoningSettings]/effort/anyOf[subschema #1]/request-property-enum-value-added
- ○
added the new
minimalenum value to the request propertyreasoning_effort/anyOf[subschema #1]/request-property-enum-value-added
- ○