Creates a model response for the given chat conversation.
Request body
Example request
{
"temperature": 1,
"top_p": 1,
"user": "user-1234",
"model": "llama3-8b-instruct",
"stop": "\n",
"n": 1
}Response
OK
Changes
Changed in 4 of the 8 revisions of this API.5921
- ▲
the
allOf[subschema #2]/messages/items/oneOf[subschema #1: System message]/content/oneOf[subschema #2: Array of content parts]/items/request property type/format changed fromstring/to/request-property-type-changed
- ▲
the
allOf[subschema #2]/messages/items/oneOf[subschema #2: Developer message]/content/oneOf[subschema #2: Array of content parts]/items/request property type/format changed fromstring/to/request-property-type-changed
- ▲
the
allOf[subschema #2]/messages/items/oneOf[subschema #3: User message]/content/oneOf[subschema #2: Array of content parts]/items/request property type/format changed fromstring/to/request-property-type-changed
- ▲
the
allOf[subschema #2]/messages/items/oneOf[subschema #4: Assistant message]/content/oneOf[subschema #2: Array of content parts]/items/request property type/format changed fromstring/to/request-property-type-changed
- ●
added the new
content_filterenum value to thechoices/items/finish_reasonresponse property for the response status200(media type: application/json)response-property-enum-value-added
- ●
added the new
content_filterenum value to thechoices/items/finish_reasonresponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ○
the endpoint scheme security
AgentAccessKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
- ○
api tag
inference-proxy-api-new_Chataddedapi-tag-added
- ○
api tag
Chatremovedapi-tag-removed
- ○
added
subschema #1subschema #2to theallOf[subschema #2]/messages/items/oneOf[subschema #1: System message]/content/oneOf[subschema #2: Array of content parts]/items/request propertyoneOflistrequest-property-one-of-added
- ○
added
subschema #1subschema #2to theallOf[subschema #2]/messages/items/oneOf[subschema #2: Developer message]/content/oneOf[subschema #2: Array of content parts]/items/request propertyoneOflistrequest-property-one-of-added
- ○
added
subschema #1subschema #2to theallOf[subschema #2]/messages/items/oneOf[subschema #3: User message]/content/oneOf[subschema #2: Array of content parts]/items/request propertyoneOflistrequest-property-one-of-added
- ○
added
subschema #1subschema #2to theallOf[subschema #2]/messages/items/oneOf[subschema #4: Assistant message]/content/oneOf[subschema #2: Array of content parts]/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
choices/items/delta/reasoning_contentto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the required property
choices/items/message/reasoning_contentto the response with the200status (media type: application/json)response-required-property-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
tool_callsenum value to thechoices/items/finish_reasonresponse property for the response status200(media type: application/json)response-property-enum-value-added
- ●
added the new
tool_callsenum value to thechoices/items/finish_reasonresponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ○
added the new optional request property
allOf[subschema #2]/messages/items/oneOf[subschema #4: Assistant message]/tool_callsnew-optional-request-property
- ○
added the new optional request property
allOf[subschema #2]/tool_choicenew-optional-request-property
- ○
added the new optional request property
allOf[subschema #2]/toolsnew-optional-request-property
- ○
added
tooldiscriminator mapping keys to theallOf[subschema #2]/messages/items/request propertyrequest-property-discriminator-mapping-added
- ○
added
ChatCompletionRequestToolMessageto theallOf[subschema #2]/messages/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
choices/items/delta/tool_callsto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
choices/items/message/tool_callsto the response with the200status (media type: application/json)response-optional-property-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
removed
ChatCompletionRequestToolMessagefrom theallOf[subschema #2]/messages/items/request propertyoneOflistrequest-property-one-of-removed
- ●
removed the request property
allOf[subschema #2]/messages/items/oneOf[subschema #4: Assistant message]/tool_callsrequest-property-removed
- ●
removed the request property
allOf[subschema #2]/tool_choicerequest-property-removed
- ●
removed the request property
allOf[subschema #2]/toolsrequest-property-removed
- ●
removed the optional property
choices/items/delta/tool_callsfrom the response with the200status (media type: text/event-stream)response-optional-property-removed
- ●
removed the optional property
choices/items/message/tool_callsfrom the response with the200status (media type: application/json)response-optional-property-removed
- ○
removed
tooldiscriminator mapping keys from theallOf[subschema #2]/messages/items/request propertyrequest-property-discriminator-mapping-deleted
- ○
removed the
tool_callsenum value from thechoices/items/finish_reasonresponse property for the response status200(media type: application/json)response-property-enum-value-removed
- ○
removed the
tool_callsenum value from thechoices/items/finish_reasonresponse property for the response status200(media type: text/event-stream)response-property-enum-value-removed
This revision also has 436 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○