Yorai chat completion
yorai_chatSend messages to a Yorai catalog text chat model and receive OpenAI-compatible chat completions, spending a small amount of credits per request.
Instructions
Run a text chat model from the Yorai catalog (OpenAI chat.completion format, no streaming, text only). Spends a small amount of credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "yorai_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | deepseek-v4-1-flash | |
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |