Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 建议增加多模型自动切换功能 #1410

Open
AthanaD opened this issue Feb 27, 2025 · 1 comment
Open

[Feature] 建议增加多模型自动切换功能 #1410

AthanaD opened this issue Feb 27, 2025 · 1 comment
Labels
enhancement New feature or request not-planned

Comments

@AthanaD
Copy link

AthanaD commented Feb 27, 2025

1、首先根据API URL及API KEY自动获取模型,例如20个。
2、人工定义所有获取到的模型优先级,用数字进行排序。
3、当默认模型出现问题尝试5次仍然出错自动切换到优先级最高的模型,依此类推,直到能够返回回复。

@AthanaD AthanaD added the enhancement New feature or request label Feb 27, 2025
@lss233
Copy link
Owner

lss233 commented Mar 9, 2025

我觉得最多做到同一个模型自动切换不同的 API 后端 / Key 就行了,这个当前是能做到随机切换的。

你的建议我认为有下面两个问题:

  1. 模型之间的能力差距还是比较大,同样的提示词给不同的模型,输出的效果可能完全不一样,这会导致你调好的一个工作流可能变得不稳定。
  2. 自动重试也会导致bot的回应耗时变得不稳定,可能会导致莫名其妙的一个问题要好久才回复,用户可能会感到困惑?

综上,与其耗费时间在切换模型上,不如直接选择几个稳定的 API 源来搭建你的 bot。

当然,如果你觉得这个功能真的很有必要,欢迎发 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not-planned
Projects
None yet
Development

No branches or pull requests

2 participants