agentscope-ai / agentscope-ai/QwenPaw
[Bug]: Zhipu 供应商 API 测试连接成功但所有模型测试连接均失败
- Vorherrschende Sprache
- TypeScript
- Sterne
- 35k
- Forks
- 3.1k
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 228
Beschreibung
## QwenPaw Version
1.1.12.post1
## Description
在「模型」配置中的内置供应商「Zhipu」,在其「设置」中配置好「API密钥」后点击「测试连接」,连接测试成功。但在「模型」设置中,所有模型的「测试连接」均提示「连接测试失败:API error when connecting to model 'glm-***'」(***为具体模型名称占位符),无论是「内置」模型还是「用户添加」模型均是如此。
供应商级别的 API 连接测试通过,但模型级别的连接测试全部失败,表明可能是模型路由或模型名称解析存在问题。
**Related PR(s):** #(optional)
**Security considerations:** 无
## Component(s) Affected
- [x] Core / Backend (app, agents, config, providers, utils, local_models)
## Environment
- **QwenPaw version:** 1.1.12.post1
- **OS:** macOS (Darwin ARM64 / Apple M1 Max)
- **Install method:** pip / one-line install
- **Python version:** 3.12.13
## Steps to Reproduce
1. 打开 QwenPaw Console,进入「模型」配置
2. 选择内置供应商「Zhipu」
3. 在 Zhipu 的「设置」中填入有效的 API 密钥
4. 点击供应商级别的「测试连接」→ 显示成功
5. 返回「模型」设置,选择任一 Zhipu 模型(如 glm-5.1 等)
6. 点击模型级别的「测试连接」→ 显示失败,错误信息为 "API error when connecting to model 'glm-***'"
7. 尝试其他内置模型或用户自定义添加的模型,均出现相同错误
## Actual vs Expected
- **Actual:** 供应商 API 测试连接成功,但所有模型测试连接均失败,提示 "API error when connecting to model 'glm-***'"
- **Expected:** 供应商 API 测试连接成功后,其下所有可用模型的测试连接也应成功
## Logs / Screenshots
错误信息示例:
连接测试失败:API error when connecting to model 'glm-5.1'
(不同模型名称错误信息中的模型名称不同,但错误类型一致)
## Additional Notes
- 该问题影响所有 Zhipu 模型,包括内置模型和用户添加的模型
- 供应商级别的 API 密钥验证已通过,排除密钥配置错误的可能
- 错误指向模型路由或模型名称解析环节
Beitragsleitfaden
Rechercherichtung
Start by reproducing the failure in the QwenPaw Console's Model settings with the built-in Zhipu provider, then compare the successful provider-level test with the failing model-level test. Trace the reported model-routing or model-name parsing path; done means built-in and user-added Zhipu models pass model-level connection tests.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100