add: 添加命令ai model list的逻辑

This commit is contained in:
taylor
2024-10-13 19:10:39 +08:00
parent 6823b8a6d5
commit 9417a3c75c
2 changed files with 5 additions and 5 deletions

View File

@@ -2,11 +2,11 @@ allowed_users: []
use_platform: local_ai
name:
name: "ollama"
reply_in_thread:
reply_in_thread: true
enable_multi_user:
enable_multi_user: true
system_prompt: ""
@@ -17,7 +17,7 @@ platforms:
api_key:
model: llama3.2
max_words: 1000
max_context_messages: 100
max_context_messages: 20
openai:
url:
api_key:

View File

@@ -168,7 +168,7 @@ class AiBotPlugin(Plugin):
if argus == 'list':
platform = self.get_ai_platform()
models = await platform.list_models()
await event.reply("\n".join(models))
await event.reply("\n".join(models), markdown=True)
# 如果不是,如果是其他的名称,表示这是一个模型名