Skip to content

Commit

Permalink
perf: 针对 api_base 的明显提示,修改 ollama 模板的api_base #247
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Jan 21, 2025
1 parent 5da82c7 commit 104d2a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"type": "openai_chat_completion",
"enable": True,
"key": ["ollama"], # ollama 的 key 默认是 ollama
"api_base": "http://localhost:11434",
"api_base": "http://localhost:11434/v1",
"model_config": {
"model": "llama3.1-8b",
},
Expand Down Expand Up @@ -396,7 +396,8 @@
"api_base": {
"description": "API Base URL",
"type": "string",
"hint": "API Base URL 请在在模型提供商处获得。支持 Ollama 开放的 API 地址。如果您确认填写正确但是使用时出现了 404 异常,可以尝试在地址末尾加上 `/v1`。",
"hint": "API Base URL 请在在模型提供商处获得。如使用时出现了 404 报错,可以尝试在地址末尾加上 `/v1`。",
"obvious_hint": True,
},
"base_model_path": {
"description": "基座模型路径",
Expand Down

0 comments on commit 104d2a4

Please sign in to comment.