Skip to content

Commit 55c6d28

Browse files
committed
perf: ollama 部署相关提示
1 parent bda1160 commit 55c6d28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/provider.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ outline: deep
5050
"type": "openai_chat_completion",
5151
"enable": true,
5252
"key": ["ollama"],
53-
"api_base": "http://localhost:11434",
53+
"api_base": "http://localhost:11434/v1",
5454
"model_config": {
5555
"model": "llama3.1-8b"
5656
}
@@ -59,6 +59,9 @@ outline: deep
5959

6060
ollama 的 key 默认是 ollama。
6161

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

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

0 commit comments

Comments
 (0)