completions
Creates, updates, deletes, gets or lists a completions
resource.
Overview
Name | completions |
Type | Resource |
Id | openai.chat.completions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | A unique identifier for the chat completion. |
choices | array | A list of chat completion choices. Can be more than one if n is greater than 1. |
created | integer | The Unix timestamp (in seconds) of when the chat completion was created. |
model | string | The model used for the chat completion. |
object | string | The object type, which is always chat.completion . |
service_tier | string | The service tier used for processing the request. This field is only included if the service_tier parameter is specified in the request. |
system_fingerprint | string | This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism. |
usage | object | Usage statistics for the completion request. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
create_chat_completion | SELECT | data__messages, data__model |
SELECT
examples
SELECT
id,
choices,
created,
model,
object,
service_tier,
system_fingerprint,
usage
FROM openai.chat.completions
WHERE data__messages = '{{ data__messages }}'
AND data__model = '{{ data__model }}';