chat_completions
Creates, updates, deletes, gets or lists a chat_completions resource.
Overview
| Name | chat_completions |
| Type | Resource |
| Id | snowflake.cortex.chat_completions |
Fields
The following fields are returned by SELECT queries:
- create
| Name | Datatype | Description |
|---|---|---|
id | string | Unique completion identifier. |
choices | array | Completion choices. |
created | integer | Unix timestamp of creation. |
model | string | Model used for the completion. |
object | string | Object type (chat.completion). |
system_fingerprint | string | Backend configuration fingerprint. |
usage | string | Completion token usage. (opaque JSON object) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | select | endpoint | Perform LLM text completion inference using Chat Completions API format. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | Organization and account identifier (orgname-accountname) (default: orgname-accountname) |
SELECT examples
- create
Perform LLM text completion inference using Chat Completions API format.
SELECT
id,
choices,
created,
model,
object,
system_fingerprint,
usage
FROM snowflake.cortex.chat_completions
WHERE endpoint = '{{ endpoint }}' -- required
;