返回模型列表
GLM Search Pro (Sogou)
zhipuzhipu/search-pro-sogou
供应商自营与 TheRouter 服务形态的差异
供应商自己运营时
BigModel 通过 tools API 以搜狗支撑联网搜索引擎形式运行 search_pro_sogou,而不是普通 chat-completions 模型。
在 TheRouter 上
TheRouter 在 /v1/chat/completions 上以 zhipu/search-pro-sogou 暴露它,并把 tools 响应转换为 markdown 结果行、url_citation 标注与 usage.web_search_requests 计费元数据。
API 使用指南
通过 Chat Completions 搜索
通过 OpenAI 兼容的 chat-completions 端点调用 search-pro-sogou。读取 message.annotations 中的 url_citation 条目,以及 usage.web_search_requests 按次计费字段。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"zhipu/search-pro-sogou","messages":[{"role":"user","content":"Find recent Chinese regulatory and Tencent ecosystem updates with sources"}],"search_recency_filter":"oneWeek","content_size":"high"}'单 chunk 流式
为兼容客户端可传 stream=true,但上游搜索工具不会分片流式输出。预期行为是一个完整 chunk,然后 [DONE]。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"zhipu/search-pro-sogou","stream":true,"messages":[{"role":"user","content":"Find Sogou-indexed Chinese news and encyclopedia updates"}]}'