add: 添加命令ai model list的逻辑
This commit is contained in:
@@ -2,11 +2,11 @@ allowed_users: []
|
|||||||
|
|
||||||
use_platform: local_ai
|
use_platform: local_ai
|
||||||
|
|
||||||
name:
|
name: "ollama"
|
||||||
|
|
||||||
reply_in_thread:
|
reply_in_thread: true
|
||||||
|
|
||||||
enable_multi_user:
|
enable_multi_user: true
|
||||||
|
|
||||||
system_prompt: ""
|
system_prompt: ""
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ platforms:
|
|||||||
api_key:
|
api_key:
|
||||||
model: llama3.2
|
model: llama3.2
|
||||||
max_words: 1000
|
max_words: 1000
|
||||||
max_context_messages: 100
|
max_context_messages: 20
|
||||||
openai:
|
openai:
|
||||||
url:
|
url:
|
||||||
api_key:
|
api_key:
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ class AiBotPlugin(Plugin):
|
|||||||
if argus == 'list':
|
if argus == 'list':
|
||||||
platform = self.get_ai_platform()
|
platform = self.get_ai_platform()
|
||||||
models = await platform.list_models()
|
models = await platform.list_models()
|
||||||
await event.reply("\n".join(models))
|
await event.reply("\n".join(models), markdown=True)
|
||||||
|
|
||||||
# 如果不是,如果是其他的名称,表示这是一个模型名
|
# 如果不是,如果是其他的名称,表示这是一个模型名
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user