Skip to content

Conversation

@zouyonghe
Copy link
Collaborator

@zouyonghe zouyonghe commented Nov 20, 2025

增加 provider 命令的提供商可用性显示

Modifications / 改动点

provider指令不仅仅显示提供商,同时显示提供商可用性

provider.py

  • This is NOT a breaking change. / 这不是一个破坏性变更。

Screenshots or Test Results / 运行截图或测试结果

image

Checklist / 检查清单

  • 😊 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。/ If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
  • 👀 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”。/ My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
  • 🤓 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到了 requirements.txtpyproject.toml 文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in requirements.txt and pyproject.toml.
  • 😮 我的更改没有引入恶意代码。/ My changes do not introduce malicious code.

Sourcery 总结

增强 provider 命令,使其在列出每个 provider 的同时,检查并显示其可达性状态

增强功能:

  • 并发测试每个 provider 的连接性,通过获取模型列表并设置 4 秒超时
  • 在每个 provider 旁边显示 ✅ 或 ❌ 指示器,以显示其可用性
Original summary in English

Summary by Sourcery

Enhance the provider command to check and display each provider's reachability status alongside its listing

Enhancements:

  • Concurrently test each provider's connectivity by fetching model lists with a 4s timeout
  • Display a ✅ or ❌ indicator next to each provider to show its availability

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好 - 我已经审阅了你的更改,它们看起来很棒!


Sourcery 对开源项目免费 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我更有用!请在每条评论上点击 👍 或 👎,我将利用这些反馈来改进你的评论。
Original comment in English

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@AstrBotDevs AstrBotDevs locked and limited conversation to collaborators Nov 20, 2025
@AstrBotDevs AstrBotDevs unlocked this conversation Nov 20, 2025
@zouyonghe zouyonghe closed this Nov 20, 2025
@zouyonghe
Copy link
Collaborator Author

使用dashboard实现替换提供商检测实现

@zouyonghe zouyonghe reopened this Nov 20, 2025
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