chat_completions
Creates, updates, deletes, gets or lists a chat_completions resource.
Overview
| Name | chat_completions |
| Type | Resource |
| Id | digitalocean.inference.chat_completions |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
inference_create_chat_completion | exec | model, messages | Creates a model response for the given chat conversation. |
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 |
|---|
Lifecycle Methods
- inference_create_chat_completion
Creates a model response for the given chat conversation.
EXEC digitalocean.inference.chat_completions.inference_create_chat_completion
@@json=
'{
"messages": "{{ messages }}",
"model": "{{ model }}",
"max_tokens": {{ max_tokens }},
"max_completion_tokens": {{ max_completion_tokens }},
"frequency_penalty": {{ frequency_penalty }},
"presence_penalty": {{ presence_penalty }},
"top_logprobs": {{ top_logprobs }},
"tools": "{{ tools }}",
"tool_choice": "{{ tool_choice }}",
"stream": {{ stream }},
"stop": "{{ stop }}",
"logit_bias": "{{ logit_bias }}",
"logprobs": {{ logprobs }},
"n": {{ n }},
"stream_options": "{{ stream_options }}",
"reasoning_effort": "{{ reasoning_effort }}",
"seed": {{ seed }},
"metadata": "{{ metadata }}",
"temperature": {{ temperature }},
"top_p": {{ top_p }},
"user": "{{ user }}"
}'
;