add: 增加切换ai平台命令

This commit is contained in:
taylor
2024-10-14 13:52:27 +08:00
parent 2c927d6659
commit 584ffcc9c4

View File

@@ -39,7 +39,7 @@ class Platform:
self.http = http self.http = http
self.config = config['platforms'][self.get_type()] self.config = config['platforms'][self.get_type()]
self.url = self.config['url'] self.url = self.config['url']
self.model = config._cur_model self.model = config.cur_model
self.max_words = self.config['max_words'] self.max_words = self.config['max_words']
self.api_key = self.config['api_key'] self.api_key = self.config['api_key']
self.max_context_messages = self.config['max_context_messages'] self.max_context_messages = self.config['max_context_messages']