Home / Servers / DigitalOcean API / inference_create_chat_completion
Create a model response for the given chat conversation
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Create a model response for the given chat conversation Creates a model response for the given chat conversation. [POST /v1/chat/completions]
Name on the gateway: digitalocean_api__inference_create_chat_completion · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
messages required | array | A list of messages comprising the conversation so far. |
model required | string | Model ID used to generate the response. |
max_tokens | integer | The maximum number of tokens that can be generated in the completion. The… |
max_completion_tokens | integer | The maximum number of completion tokens that may be used over the course of… |
frequency_penalty | number | Number between -2.0 and 2.0. Positive values penalize new tokens based on… |
presence_penalty | number | Number between -2.0 and 2.0. Positive values penalize new tokens based on… |
top_logprobs | integer | An integer between 0 and 20 specifying the number of most likely tokens to… |
tools | array | A list of tools the model may call. Currently, only functions are supported as… |
tool_choice | object | Controls which (if any) tool is called by the model. none means the model will… |
stream | boolean | If set to true, the model response data will be streamed to the client as it… |
stop | string | Up to 4 sequences where the API will stop generating further tokens. The… |
logit_bias | object | Modify the likelihood of specified tokens appearing in the completion. Accepts… |
logprobs | boolean | Whether to return log probabilities of the output tokens or not. If true… |
n | integer | How many chat completion choices to generate for each input message. Note that… |
stream_options | object | Options for streaming response. Only set this when you set stream to true. |
reasoning_effort | none | minimal | low | medium | high | xhigh | Constrains effort on reasoning for reasoning models. Reducing reasoning effort… |
seed | integer | If specified, the system will make a best effort to sample deterministically… |
metadata | object | Set of 16 key-value pairs that can be attached to an object. This can be… |
temperature | number | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will… |
top_p | number | An alternative to sampling with temperature, called nucleus sampling, where… |
user | string | A unique identifier representing your end-user, which can help DigitalOcean to… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__inference_create_chat_completion",
"arguments": {
"messages": [],
"model": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a model response for the given chat conversation tool with messages set to ….