diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-19 11:38:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-19 11:38:28 +0800 |
| commit | ef5febaa0ea5779d11bba062a2f623262931147e (patch) | |
| tree | acd380e133932856624d45ee3ef7ea60176309da /src | |
| parent | e61aaae0e24eb0dbe25384f310d599f624a08126 (diff) | |
| download | aichat-ef5febaa0ea5779d11bba062a2f623262931147e.tar.gz | |
feat: add a default base_url to ollama (#1102)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index c84dcf2..9ccfad8 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -49,7 +49,7 @@ pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 22] = [ ("mistral", "https://api.mistral.ai/v1"), ("moonshot", "https://api.moonshot.cn/v1"), ("openrouter", "https://openrouter.ai/api/v1"), - ("ollama", ""), + ("ollama", "http://127.0.0.1:11434/v1"), ("perplexity", "https://api.perplexity.ai"), ( "qianwen", |
