generate_text
Generate text through CLIProxy using Chat Completions or Responses APIs. Send a prompt with optional model, system instructions, and token limit to get text output while managing credit usage.
Instructions
通过 CLIProxy 生成文本。支持 Chat Completions 和 Responses;调用可能消耗额度。
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": {
"prompt": "<prompt>"
},
"name": "generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | ||
| model | No | CLIProxy 模型 ID;省略时使用配置中的默认模型 | |
| prompt | Yes | ||
| system | No | ||
| maxTokens | No |