feat: support ollama ai model (#1001)

Co-authored-by: Kent Dong <ch3cho@qq.com>
This commit is contained in:
Yifan Gao
2024-05-28 10:55:59 +08:00
committed by GitHub
parent 93966bf14b
commit 50f79c9099
4 changed files with 135 additions and 2 deletions

View File

@@ -93,6 +93,15 @@ Anthropic Claude 所对应的 `type` 为 `claude`。它特有的配置字段如
|-----------|--------|-----|-----|-------------------|
| `version` | string | 必填 | - | Claude 服务的 API 版本 |
#### Ollama
Ollama 所对应的 `type``ollama`。它特有的配置字段如下:
| 名称 | 数据类型 | 填写要求 | 默认值 | 描述 |
|-------------------|--------|------|-----|----------------------------------------------|
| `ollamaServerHost` | string | 必填 | - | Ollama 服务器的主机地址 |
| `ollamaServerPort` | number | 必填 | - | Ollama 服务器的端口号默认为11434 |
## 用法示例
### 使用 OpenAI 协议代理 Azure OpenAI 服务