mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-13 01:06:03 +00:00
feat: 使用量估算值不再与key切换挂钩,现在仅根据接口报错进行切换
This commit is contained in:
@@ -26,6 +26,7 @@ def reload_all(notify=True):
|
||||
main.stop()
|
||||
|
||||
# 重载所有模块
|
||||
pkg.utils.context.context['exceeded_keys'] = pkg.utils.context.get_openai_manager().key_mgr.exceeded
|
||||
context = pkg.utils.context.context
|
||||
walk(pkg)
|
||||
importlib.reload(__import__('config'))
|
||||
|
||||
Reference in New Issue
Block a user