Chat
Changed onRequest
- The document declares no server URL.
- AuthHTTP bearer
Headers
Request body
Example request
{
"max_completion_tokens": -1,
"messages": [
{
"content": "You are a helpful assistant running on a CS-3 hardware at Cerebras Systems",
"role": "system"
},
{
"content": "What is Generative AI?",
"role": "user"
}
],
"min_tokens": 1000,
"model": "llama3.1-8b",
"seed": 0,
"stop_sequence": null,
"stream": false,
"temperature": 0,
"top_p": 1
}Response
Successful Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Generative AI is a subfield of artificial intelligence that focuses on generating new, original content, such as images, music, text, or videos. These models are trained on large datasets and learn to recognize patterns, relationships, and structures within the data, allowing them to generate new content that is similar in style, tone, or characteristics to the training data. \n \n Generative AI models can be categorized into two main types: Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs). GANs consist of two neural networks: a generator and a discriminator. The generator creates new content, while the discriminator evaluates the generated content and tells the generator whether it's realistic or not. VAEs are neural networks that learn to compress and reconstruct data. \n \n Generative AI has numerous applications across various industries, including art and design, content generation, data augmentation, and recommendation systems. Some examples of Generative AI in action include Deep Dream Generator, Amper Music, and DALL-E. \n \n In summary, Generative AI is a powerful technology that enables the creation of new, original content using machine learning models. It has the potential to revolutionize various industries and create new opportunities for artists, designers, and content creators.",
"role": "assistant"
}
}
],
"created": 1721088719,
"id": "response_1721",
"model": "llama3.1-8b",
"object": "chat.completion",
"system_fingerprint": "88719",
"time_info": {
"completion_time": 0.44,
"prompt_time": 0.02,
"queue_time": 0,
"total_time": 0.46
},
"usage": {
"completion_tokens": 1020,
"prompt_tokens": 40,
"prompt_tokens_details": {
"cached_tokens": 1020
},
"total_tokens": 1060
}
}Changes
- breaking
removed
subschema #1from therequest propertyanyOflist - breaking
the request property
became required - breaking
removed the enum value
contentof the request property// - breaking
removed the enum value
json_objectof the request property/// - breaking
removed the enum value
json_schemaof the request property/// - breaking
removed the enum value
textof the request property///// - breaking
removed the enum value
textof the request property/// - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
the
request property's minItems was increased to1 - breaking
the response property
///became optional for the status - breaking
the response property
/////became optional for the status - breaking
the response property
/////became optional for the status - breaking
the response property
////////became optional for the status - breaking
the response property
////////became optional for the status - breaking
the response property
///////became optional for the status - breaking
the response property
/////became optional for the status - breaking
the response property
/////became optional for the status - breaking
the response property
/became optional for the status - breaking
the response property
/became optional for the status - breaking
the response property
//////became optional for the status - breaking
the response property
//////became optional for the status - breaking
the response property
//////became optional for the status - breaking
the response property
//////became optional for the status - breaking
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/finish_reasonlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/function/argumentslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/function/namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #2: ChatChunkResponse]/time_info/anyOf[subschema #1: TimeInfo]/completion_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #2: ChatChunkResponse]/time_info/anyOf[subschema #1: TimeInfo]/prompt_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #2: ChatChunkResponse]/time_info/anyOf[subschema #1: TimeInfo]/queue_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #2: ChatChunkResponse]/time_info/anyOf[subschema #1: TimeInfo]/total_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
the
/response's property type changed fromobjectto no type for status - breaking
the
/response's property type changed fromobjectto no type for status - warning
the
/request property's min was set to-1.00 - warning
the
/request property's min was set to-1.00 - warning
the
/request property's min was set to-1.00 - warning
the
/request property's min was set to-1.00 - warning
the
/request property's min was set to1.00 - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the media type
application/msgpackto the request body - info
added the media type
application/vnd.msgpackto the request body - info
added the media type
application/x-msgpackto the request body - info
added to the
request propertyanyOflist - info
the
/request property's max was increased from1.50to2.00 - info
added the optional property
///////to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
///to the response with the status - info
added
subschema #2to the/response propertyanyOflist for the response status - info
added
subschema #2to the/response propertyanyOflist for the response status - info
the
response property const valuechat.completion.chunkwas added for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/delta/anyOf[subschema #1: ChunkResponseMessage]/tokensdeprecated - info
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/textdeprecated - info
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/tokensdeprecated - info
removed the
chat.completionenum value from the/response property for the response status - info
removed the
chat.completion.chunkenum value from the/response property for the response status - info
removed the
content_filterenum value from the///response property for the response status - info
removed the
functionenum value from the///////response property for the response status - info
removed the
functionenum value from the/////////response property for the response status - info
removed the
lengthenum value from the///response property for the response status - info
removed the
stopenum value from the///response property for the response status - info
removed the
text_completionenum value from the/response property for the response status - info
removed the
tool_callsenum value from the///response property for the response status
- breaking