summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-08-22 06:41:16 +0800
committerGitHub <noreply@github.com>2024-08-22 06:41:16 +0800
commitf1cbb3c006fdbf0815a33800b62b66eb52a55a5f (patch)
treef8f8d6ef0a9bb8face3e984bbd07d8c8975abc15 /src/client
parentc0eae1c55c0d48ed1c6f9f6cb2d8990deb163b37 (diff)
downloadaichat-f1cbb3c006fdbf0815a33800b62b66eb52a55a5f.tar.gz
feat: support github client (#798)
Diffstat (limited to 'src/client')
-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 80f526a..5a4a9ac 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -40,10 +40,11 @@ register_client!(
(qianwen, "qianwen", QianwenConfig, QianwenClient),
);
-pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 14] = [
+pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 15] = [
("deepinfra", "https://api.deepinfra.com/v1/openai"),
("deepseek", "https://api.deepseek.com"),
("fireworks", "https://api.fireworks.ai/inference/v1"),
+ ("github", "https://models.inference.ai.azure.com"),
("groq", "https://api.groq.com/openai/v1"),
("jina", "https://api.jina.ai/v1"),
("lingyiwanwu", "https://api.lingyiwanwu.com/v1"),