兼容 OpenAI 格式的文字对话接口,支持全部文字模型
Documentation Index
Fetch the complete documentation index at: https://docs.toapis.com/llms.txt
Use this file to discover all available pages before exploring further.
model 参数指定模型,所有支持的模型请参阅 模型一览true:逐 token 流式返回false:等待完整响应后一次性返回0 ~ 20 ~ 1,建议不要同时修改 temperature 和 top_pchat.completionchoices[].message.role:消息角色,固定为 assistantchoices[].message.content:生成的文本内容choices[].finish_reason:结束原因,stop / length / content_filterchoices[].index:结果索引usage.prompt_tokens:输入 token 数usage.completion_tokens:输出 token 数usage.total_tokens:总 token 数