Skip to content

[Feature]: 设置-模型服务"测试连接"支持不填 Model ID 即可验证连通性 #792

Description

@HuaXiawithMoon

Problem

当前"设置 → 模型服务"中的"测试连接"按钮调用 onboarding.provider.probe RPC,底层 probe_llm_provider() 硬性要求 model id(空则直接 raise ValueError)。

这意味着用户必须先填写一个正确的 model id 才能验证 API Key / Base URL / 代理是否可达。对新用户来说这是一个鸡生蛋的问题:不知道 provider 支持哪些 model → 无法测试连接 → 无法确认配置是否正确 → 无法获取 model 列表。

Proposed behavior

当 model 字段为空时,"测试连接"改为调用已有的 discover_provider_models()(即 GET /v1/models 列表接口)来验证连通性,而非发送 1-token chat completion。

Area

Web UI

Alternatives considered

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthas-linked-prAn open pull request is linked to this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions