请求参数
Chat Completions 主要字段说明。
字段表
主要请求参数:
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | ✓ | 模型名,支持物理模型或虚拟档位 eco/balanced/premium/code/reasoning/longctx/auto |
messages | array | ✓ | 对话消息,元素含 role(system/user/assistant)和 content |
stream | boolean | true 为流式 SSE,默认 false 返回完整 JSON | |
temperature | float | 0~2,生成随机性 | |
max_tokens | integer | 最大输出 token 数 |