summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-05-07 16:40:18 +0800
committerGitHub <noreply@github.com>2024-05-07 16:40:18 +0800
commit956a9603904dfbd69771cd9ce56b3f4d23bca71f (patch)
treee91b8bd46a075d491fe76de51861bc21c85cf787 /src
parent0071d84aa538364b70d9db8fcecf9f3ea64ead5e (diff)
downloadaichat-956a9603904dfbd69771cd9ce56b3f4d23bca71f.tar.gz
feat: support zhipuai client (#491)
Diffstat (limited to 'src')
-rw-r--r--src/client/mod.rs3
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"),
];