Skip to main content

chat_completions

Creates, updates, deletes, gets or lists a chat_completions resource.

Overview

Namechat_completions
TypeResource
Iddigitalocean.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:

NameAccessible byRequired ParamsOptional ParamsDescription
inference_create_chat_completionexecmodel, messagesCreates 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.

NameDatatypeDescription

Lifecycle Methods

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 }}"
}'
;