chat_completion
Generate single-turn or multi-turn responses with DeepSeek V4. Choose flash or pro models, control thinking, and persist conversation context. Provide a message or full chat history to get AI-generated replies.
Instructions
Primary DeepSeek V4 chat tool for single-turn and multi-turn generation. Defaults to deepseek-v4-flash; use deepseek-v4-pro for higher-capability reasoning. Provide either message (simple single user turn) or messages (full chat history); if both are provided, messages is used. Thinking mode is enabled by DeepSeek by default; pass thinking:{type:"disabled"} for non-thinking mode, and use reasoning_effort:"low"|"high"|"max" when thinking is enabled. Use conversation_id to persist context across calls and clear_conversation=true to reset stored state before sending the next turn. Set include_raw_response=true only for debugging because it returns the full provider payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | ||
| model | No | deepseek-v4-flash | |
| tools | No | ||
| top_p | No | ||
| stream | No | ||
| message | No | ||
| user_id | No | ||
| logprobs | No | ||
| messages | No | ||
| thinking | No | ||
| extra_body | No | ||
| max_tokens | No | ||
| temperature | No | ||
| tool_choice | No | ||
| top_logprobs | No | ||
| stream_options | No | ||
| conversation_id | No | ||
| response_format | No | ||
| presence_penalty | No | ||
| reasoning_effort | No | ||
| frequency_penalty | No | ||
| clear_conversation | No | ||
| include_raw_response | No |