add: 添加切换模型命令

This commit is contained in:
taylor
2024-10-14 01:12:38 +08:00
parent 3451e3591f
commit 24b094842f

View File

@@ -37,7 +37,7 @@ class Platform:
system_prompt: str system_prompt: str
max_context_messages: int max_context_messages: int
def __init__(self, config: Config, http: ClientSession) -> None: def __init__(self, config: BaseProxyConfig, http: ClientSession) -> None:
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']