deepseek_fim
Generate the missing middle code from a provided prefix and suffix. Supply the surrounding code context to receive the completed section.
Instructions
Fill-in-the-Middle 代码补全,根据代码前缀和后缀生成中间代码。API Key 模式使用原生 FIM 接口,网页版模式通过对话模拟实现
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": {
"prefix": "<prefix>"
},
"name": "deepseek_fim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | 代码前缀(光标位置之前的代码) | |
| suffix | No | 代码后缀(光标位置之后的代码) | |
| max_tokens | No | 最大补全 token 数,默认 256 | |
| temperature | No | 采样温度,代码补全建议使用低值如 0,默认 0 |