dat_completions
Execute chat completions using a specified model and messages, with optional streaming, function calling, or built-in tools for web, filesystem, and browser access.
Instructions
OpenAI-compatible chat completions via dat.ai. Supports streaming and non-streaming. Can enable built-in tools (net, fs, webview) via the datai.tools parameter. Note: tools cannot be used with streaming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed. Optional. | |
| stop | No | Stop sequence(s). Optional. | |
| model | Yes | Model name, e.g. 'qwen3:1.7b' | |
| tools | No | OpenAI function-calling tools. Optional. | |
| top_p | No | Nucleus sampling parameter. Optional. | |
| stream | No | Enable streaming. Default: false. | |
| messages | Yes | Chat messages array. | |
| max_tokens | No | Maximum tokens to generate. Optional. | |
| datai_tools | No | dat.ai built-in tools. Cannot be used with stream=true. | |
| temperature | No | Sampling temperature. Optional. | |
| tool_choice | No | Tool choice strategy. Optional. |