iflow GLM4.6 API 如何支持思考模式?

如题: iflow GLM4.6 API 如何支持思考模式?

使用openAI协议按这个传参,可以试一下~

1 个赞

真的可以吗,我请求之后返回500错误

Iflow cli 的GLM4.6 支持思考模式吗?

支持的

{
  "model": "glm-4.6",
  "stream": true,
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "你是谁"
    }
  ],
  "thinking": {
    "type": "enabled"
  }
}