OpenAI Chat Completions v1 compatible endpoint
OpenAI Chat Completions v1 compatible endpoint
Request body
Example request
{
"model": "alignment-handbook/zephyr-7b-dpo-lora",
"messages": [
{
"role": "user",
"content": "What is deep learning?"
}
],
"temperature": 0.5,
"top_p": 0.95,
"n": 3,
"stop": [
"photographer"
]
}Response
Generated Text
Changes
Changed in 6 of the 14 revisions of this API.2711
- ●
the
nrequest property's min was set to0.00request-property-min-set
- ●
the
temperaturerequest property's min was set to0.00request-property-min-set
- ●
the
top_prequest property's min was set to0.00request-property-min-set
- ○
the
max_tokensrequest property's exclusiveMinimum was decreased from0.00totruerequest-property-exclusive-min-decreased
- ○
the
nrequest property's exclusiveMinimum was decreased from0.00totruerequest-property-exclusive-min-decreased
- ○
the
temperaturerequest property's exclusiveMinimum was decreased from0.00tofalserequest-property-exclusive-min-decreased
- ○
the
top_prequest property's exclusiveMinimum was decreased from0.00totruerequest-property-exclusive-min-decreased
- ●
- ○
added the new optional request property
adapter_sourcenew-optional-request-property
- ○
added the new optional request property
api_tokennew-optional-request-property
- ○
- ●
removed the optional property
choices/items/messagefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
usagefrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
choices/items/deltato the response with the200statusresponse-optional-property-added
- ●
- ▲
the
choices/items/messageresponse's property type/format changed fromstring/toobject/for status200(media type: application/json)response-property-type-changed
- ●
removed the optional property
choices/items/logprobsfrom the response with the200status (media type: text/event-stream)response-optional-property-removed
- ●
removed the optional property
choices/items/textfrom the response with the200status (media type: text/event-stream)response-optional-property-removed
- ○
added the optional property
choices/items/messageto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
choices/items/message/contentto the response with the200status (media type: application/json)response-optional-property-added
- ○
added the optional property
choices/items/message/roleto the response with the200status (media type: application/json)response-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲