add: 增加切换ai平台命令

This commit is contained in:
taylor
2024-10-14 14:08:22 +08:00
parent 1b8e028b83
commit e9dc178e83
2 changed files with 7 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ class Platform:
self.http = http
self.config = config['platforms'][self.get_type()]
self.url = self.config['url']
# 设置当前的使用模型这里不直接使用config对象下的配置值而是加入了与命令决定后的使用模型名称
self.model = config.cur_model
self.max_words = self.config['max_words']
self.api_key = self.config['api_key']