mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-26 01:45:56 +03:00
[GH-ISSUE #213] [建议] 新添加账号的 checkHealth 默认值与示例配置不一致 #155
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moonjoke001 on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/213
问题描述
通过 Web UI 或自动关联功能添加新账号时,
checkHealth默认值为false,但configs/provider_pools.json.example示例文件中所有账号的checkHealth都是true。这导致用户按照示例配置的预期使用时,发现新添加的账号并没有启用健康检查。
代码位置
src/utils/provider-utils.js第 248 行的createProviderConfig函数:建议
以下方案供参考:
true:与示例配置保持一致config.json中添加DEFAULT_CHECK_HEALTH配置项,让用户自行决定默认值false是有意设计(如避免消耗额度),建议在示例文件中也改为false,并在文档中说明环境信息
provider_pools.json.example与实际生成的配置@justlovemaki commented on GitHub (Jan 11, 2026):
对,默认为false,感谢你的建议