diff options
| author | sigoden <sigoden@gmail.com> | 2024-09-04 07:24:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-04 07:24:50 +0800 |
| commit | df13045b2c79f2977a7a2c0a1ed4c21f15b08f2d (patch) | |
| tree | 3c3420a0b4c72125f6853a158fba4636e555884c /src | |
| parent | 9654445c32e72865c6e3af32dc1e5a3dc411a593 (diff) | |
| download | aichat-df13045b2c79f2977a7a2c0a1ed4c21f15b08f2d.tar.gz | |
feat: add siliconflow client (#831)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index eb9d3e9..500d5ab 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -37,7 +37,7 @@ register_client!( (ernie, "ernie", ErnieConfig, ErnieClient), ); -pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 20] = [ +pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 21] = [ ("ai21", "https://api.ai21.com/studio/v1"), ("cloudflare", ""), ("deepinfra", "https://api.deepinfra.com/v1/openai"), @@ -51,12 +51,13 @@ pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 20] = [ ("moonshot", "https://api.moonshot.cn/v1"), ("openrouter", "https://openrouter.ai/api/v1"), ("octoai", "https://text.octoai.run/v1"), - ("ollama", "http://localhost:11434/v1"), + ("ollama", ""), ("perplexity", "https://api.perplexity.ai"), ( "qianwen", "https://dashscope.aliyuncs.com/compatible-mode/v1", ), + ("siliconflow", "https://api.siliconflow.cn/v1"), ("together", "https://api.together.xyz/v1"), ("zhipuai", "https://open.bigmodel.cn/api/paas/v4"), // RAG-dedicated |
