Skip to content

fix: 修复智谱 API 模型检测路径重复问题 - #41

Merged
Feather-2 merged 1 commit into
mainfrom
fix-bugs
Nov 24, 2025
Merged

Feather-2 merged 1 commit into
mainfrom
fix-bugs

Conversation

@Feather-2

Copy link
Copy Markdown
Owner

问题描述:

  • 智谱 API 模型检测失败,返回 404 错误
  • 请求路径错误地变成了 /v4/v1/models(/v1 重复)
  • 正确路径应该是 /v4/models

解决方案:

  • 在调用 detectModelsForSite 时传递 endpointMode 参数
  • endpointMode 从站点配置中读取,默认为 'auto'
  • 确保模型检测器能正确处理不同 API 的端点模式

修复后效果:

  • 智谱 API 可以正常检测到可用模型
  • 不再出现路径重复导致的 404 错误

问题描述:
- 智谱 API 模型检测失败,返回 404 错误
- 请求路径错误地变成了 /v4/v1/models(/v1 重复)
- 正确路径应该是 /v4/models

解决方案:
- 在调用 detectModelsForSite 时传递 endpointMode 参数
- endpointMode 从站点配置中读取,默认为 'auto'
- 确保模型检测器能正确处理不同 API 的端点模式

修复后效果:
- 智谱 API 可以正常检测到可用模型
- 不再出现路径重复导致的 404 错误
@vercel

vercel Bot commented Nov 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
paper-burner Ready Ready Preview Comment Nov 24, 2025 4:17pm

@Feather-2
Feather-2 merged commit 3c20813 into main Nov 24, 2025
5 checks passed
@Feather-2
Feather-2 deleted the fix-bugs branch November 24, 2025 16:18

This branch was successfully deployed

1 active deployment
Preview — a6cface1 Deployed Nov 24, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant