Completions
Changed onRequest
- The document declares no server URL.
- AuthHTTP bearer
Headers
Request body
Example request
{
"model": "llama3.1-70b",
"prompt": "Micheael Jordan is born in ",
"stream": true
}Response
Successful Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"text": "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."
}
],
"created": 1721088719,
"id": "response_1721",
"model": "llama3.1-8b",
"object": "text_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,
"total_tokens": 1060
}
}Changes
- breaking
removed
subschema #3subschema #4from therequest propertyanyOflist - breaking
removed the enum value
hiddenof the request property - breaking
removed the enum value
noneof the request property - breaking
removed the enum value
parsedof the request property - breaking
removed the enum value
rawof the request property - breaking
removed the enum value
text_parsedof the request property - breaking
the
request property type changed fromstringto no type - breaking
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/completion_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/prompt_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/queue_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/total_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - 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
added the new
tool_callsenum value to the////response property for the response status - 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
subschema #2to therequest propertyanyOflist - info
added
subschema #3subschema #4to therequest propertyanyOflist - info
the
request property default valueparsedwas removed - info
request property
deprecated - info
the
/request property's max was increased from1.50to2.00 - info
removed from the response body
anyOflist for the response 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
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
removed the
text_completionenum value from the/response property for the response status
- breaking