Doris 4.0.1 AI 智普连接不上

Viewed 4

[2026-03-09 10:55:22] [HY000][1105] errCode = 2, detailMessage = (10.10.8.21)[HTTP_ERROR]The requested URL returned error: 404, url=https://open.bigmodel.cn/api/paas/v4/

create RESOURCE 'Zhipu_test'
PROPERTIES (
'type' = 'ai',
'ai.provider_type' = 'openai',
'ai.endpoint' = 'https://open.bigmodel.cn/api/paas/v4/',
'ai.model_name' = 'glm-5',
'ai.api_key' = 'xxx'
);

1 Answers

检查下 endpoint是不是有问题,v4 后要有 /chat/completions 的吧

curl --location 'https://open.bigmodel.cn/api/paas/v4/chat/completions' \
--header 'Authorization: Bearer YOUR_ZHIPU_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "model": "glm-4-flash",
  "messages": [
    {
      "role": "user",
      "content": "你好,请回复‘连接成功’以测试网络连通性。"
    }
  ],
  "stream": false
}'