add: 添加ollama调用AI chat逻辑

This commit is contained in:
taylor
2024-10-13 15:37:12 +08:00
parent 78acb679ee
commit e5d4e52bc0
8 changed files with 275 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ enable_multi_user:
system_prompt:
platforms:
local:
local_ai:
type: ollama
url: http://localhost:11434
api_key:
@@ -30,3 +30,9 @@ platforms:
max_tokens:
model:
max_words:
additional_prompt:
- role: user
content: xxx
- role: system
content: xxx