Skip to content

fix: use live probe + bank merge for Chat UI model list (#282) - #317

Open
404-Page-Found wants to merge 1 commit into
Narcooo:masterfrom
404-Page-Found:fix/282-siliconcloud-models
Open

fix: use live probe + bank merge for Chat UI model list (#282)#317
404-Page-Found wants to merge 1 commit into
Narcooo:masterfrom
404-Page-Found:fix/282-siliconcloud-models

Conversation

@404-Page-Found

@404-Page-Found 404-Page-Found commented Jun 22, 2026

Copy link
Copy Markdown

Fixes #282

Problem

Models added to SiliconCloud after the hardcoded bank was published (e.g. \deepseek-ai/DeepSeek-V4-Flash) appear in the Config page's test connection results but are missing from the Chat UI's model picker, making them impossible to select in conversations.

Root Cause

The \GET /api/v1/services/models\ endpoint (consumed by \ChatPage) only returned hardcoded bank models from \siliconcloud.ts. The Config page uses a separate endpoint (\GET /api/v1/services/:service/models) that performs a live /models\ probe merged with bank metadata.

Fix

Changed \GET /api/v1/services/models\ to use \listModelsForService()\ — the same live probe + bank merge function used by the Config page endpoint. This ensures newly available models are discovered at runtime and displayed in the Chat UI.

Before: \�p.models.filter(enabled).filter(textChat)\ — bank-only, no live discovery
After: \�wait listModelsForService(ep.id, apiKey)\ → \ ilterTextChatModels(enriched)\ — live probe + bank merge with 10-min caching

Verification

  • Typecheck passes for both @actalk/inkos-core\ and @actalk/inkos-studio\
  • All pre-existing test timeouts confirmed unrelated (fail identically on unmodified code)

The GET /api/v1/services/models endpoint (used by ChatPage) previously
only returned hardcoded bank models. Models added to SiliconCloud after
the bank was published (e.g. DeepSeek-V4-Flash) appeared in the Config
page but not in the Chat UI.

Now uses listModelsForService() which performs a live /models probe
merged with bank metadata, matching the Config page behavior.
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