completion
Generate raw fill-in-the-middle text by providing a prompt and optional suffix, bypassing chat message formatting for direct code or document completion.
Instructions
DeepSeek FIM completion tool for prompt/suffix fill-in-the-middle workflows. Defaults to deepseek-flash in non-thinking mode. 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-flash | |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| model | No | ||
| usage | No | ||
| status | No | ||
| message | No | ||
| retryable | No | ||
| error_type | No | ||
| suggestion | No | ||
| raw_response | No | ||
| finish_reason | No | ||
| stream_chunk_count | No |