diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-07 16:40:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 16:40:18 +0800 |
| commit | 956a9603904dfbd69771cd9ce56b3f4d23bca71f (patch) | |
| tree | e91b8bd46a075d491fe76de51861bc21c85cf787 /src | |
| parent | 0071d84aa538364b70d9db8fcecf9f3ea64ead5e (diff) | |
| download | aichat-956a9603904dfbd69771cd9ce56b3f4d23bca71f.tar.gz | |
feat: support zhipuai client (#491)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index ab28032..7f902a1 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -45,7 +45,7 @@ register_client!( (qianwen, "qianwen", QianwenConfig, QianwenClient), ); -pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 11] = [ +pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 12] = [ ("anyscale", "https://api.endpoints.anyscale.com/v1"), ("deepinfra", "https://api.deepinfra.com/v1/openai"), ("deepseek", "https://api.deepseek.com"), @@ -57,4 +57,5 @@ pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 11] = [ ("octoai", "https://text.octoai.run/v1"), ("perplexity", "https://api.perplexity.ai"), ("together", "https://api.together.xyz/v1"), + ("zhipuai", "https://open.bigmodel.cn/api/paas/v4"), ]; |
