add: 添加切换模型命令

This commit is contained in:
taylor
2024-10-14 00:51:48 +08:00
parent 2d04636cfd
commit 79f667aaaa

View File

@@ -11,7 +11,7 @@ class AbsExtraConfigPlugin(Plugin):
await super().start() await super().start()
self.default_username = await self.client.get_displayname(self.client.mxid) self.default_username = await self.client.get_displayname(self.client.mxid)
self.user_id = self.client.parse_user_id(self.client.mxid)[0] self.user_id = self.client.parse_user_id(self.client.mxid)[0]
self.model = self.config['platform'][self.config['use_platform']]['model'] self.model = self.config['platforms'][self.config['use_platform']]['model']
def get_bot_name(self) -> str: def get_bot_name(self) -> str:
return self.config['name'] or \ return self.config['name'] or \