mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 11:44:18 +00:00
feat: 删除oss相关代码
This commit is contained in:
@@ -38,10 +38,6 @@ class ModelManager:
|
||||
|
||||
async def initialize(self):
|
||||
|
||||
# 检查是否启用了vision但是没有配置oss
|
||||
if self.ap.provider_cfg.data['enable-vision'] and not self.ap.oss_mgr.available():
|
||||
self.ap.logger.warn("启用了视觉但是没有配置可用的oss服务,基于 URL 传递图片的视觉 API 将无法正常使用")
|
||||
|
||||
# 初始化token_mgr, requester
|
||||
for k, v in self.ap.provider_cfg.data['keys'].items():
|
||||
self.token_mgrs[k] = token.TokenManager(k, v)
|
||||
|
||||
Reference in New Issue
Block a user