Skip to content

Commit

Permalink
perf: ollama 部署相关提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Jan 21, 2025
1 parent bda1160 commit 55c6d28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ outline: deep
"type": "openai_chat_completion",
"enable": true,
"key": ["ollama"],
"api_base": "http://localhost:11434",
"api_base": "http://localhost:11434/v1",
"model_config": {
"model": "llama3.1-8b"
}
Expand All @@ -59,6 +59,9 @@ outline: deep

ollama 的 key 默认是 ollama。

> [!TIP]
> 1. 部分模型不支持工具调用或者调用效果很差,因此您可能需要手动 /tool ls 得到所有启用的工具,并使用 /tool off 禁用
### Gemini

对于 Gemini,有两种配置方式。一种是使用 OpenAI 兼容的 API,即 `type` 字段为 `openai_chat_completion`。另一种是使用 Gemini 的专用 API,即 `type` 字段为 `googlegenai_chat_completion`
Expand Down

0 comments on commit 55c6d28

Please sign in to comment.