completion
Generate fill-in-the-middle text completions from a prompt and optional suffix, returning raw completion text for code and content workflows. Configure model, temperature, and other generation parameters as needed.
Instructions
DeepSeek V4 Pro FIM completion tool for prompt/suffix fill-in-the-middle workflows. Defaults to deepseek-v4-pro. Use this when you need raw completion text instead of chat message formatting. Set include_raw_response=true only when you need the full provider payload for debugging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| echo | No | ||
| stop | No | ||
| model | No | deepseek-v4-pro | |
| top_p | No | ||
| prompt | Yes | ||
| stream | No | ||
| suffix | No | ||
| logprobs | No | ||
| extra_body | No | ||
| max_tokens | No | ||
| temperature | No | ||
| presence_penalty | No | ||
| frequency_penalty | No | ||
| include_raw_response | No |