跳转到主要内容
不同模型系列对 Chat Completions API 参数有不同的默认值和约束。完整的模型列表请参阅模型列表

参数对比

temperature 接近 0 时,n 只能为 1,否则将返回 invalid_request_error

Kimi K2.5 — thinking 参数

Kimi K2.5 支持通过 thinking 参数控制是否启用深度思考。接受 {"type": "enabled"}{"type": "disabled"} 由于 OpenAI SDK 没有原生的 thinking 参数,需要使用 extra_body 传递:
completion = client.chat.completions.create(
    model="kimi-k2.5",
    messages=[
        {"role": "user", "content": "你好"}
    ],
    extra_body={
        "thinking": {"type": "disabled"}
    },
    max_tokens=1024*32,
)