You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed on current dev. This is a real fallback bug, not just a dashboard refresh problem.
A custom provider with adapter: "anthropic", defaultModel: "claude-sonnet-5", and no explicit models[] currently does this when its upstream /v1/models returns 404:
Provider model discovery ... failed with HTTP 404 [fallback=configured]
[]
The log says fallback=configured, but the implementation only seeds that fallback from provider.models; it ignores the already configured defaultModel for non-Vertex providers. The provider therefore has a valid callable default but publishes zero model rows and disappears from the Models page.
I am fixing this by:
using defaultModel as the configured fallback when models[] is empty;
keeping a successful live /models response authoritative, so this does not inject unsupported models into healthy catalogs;
adding a regression for an Anthropic-compatible provider whose /v1/models returns 404;
Activity
Ingwannu commentedon Jul 23, 2026
Confirmed on current
dev. This is a real fallback bug, not just a dashboard refresh problem.A custom provider with
adapter: "anthropic",defaultModel: "claude-sonnet-5", and no explicitmodels[]currently does this when its upstream/v1/modelsreturns 404:The log says
fallback=configured, but the implementation only seeds that fallback fromprovider.models; it ignores the already configureddefaultModelfor non-Vertex providers. The provider therefore has a valid callable default but publishes zero model rows and disappears from the Models page.I am fixing this by:
defaultModelas the configured fallback whenmodels[]is empty;/modelsresponse authoritative, so this does not inject unsupported models into healthy catalogs;/v1/modelsreturns 404;I will update this issue with the merged commit and validation results, then close it once the fix is on
dev.Ingwannu commentedon Jul 23, 2026
已修复并合并到
dev:#313(merge commitd56d2948)。修复内容:
models[]的 Anthropic 自定义提供商,只有在实时模型发现失败时才回退到defaultModel;liveModels: false且静态模型为空时仍保持零模型,不会意外暴露模型;验证:完整测试 3,614 passed / 0 failed,typecheck、privacy scan、GUI lint/build 以及 Linux/macOS/Windows CI 全部通过。这个问题可以关闭。