summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-01-28 08:59:31 +0800
committerGitHub <noreply@github.com>2025-01-28 08:59:31 +0800
commitd357e6ddb4d2d9374dc1eeb6cab43035460e17a2 (patch)
tree8b899d82c1fe4666d9b0421361def6be050f8602 /src/client
parent22d21237dd3a8ca8144569e43aacc5aeda0cf53f (diff)
downloadaichat-d357e6ddb4d2d9374dc1eeb6cab43035460e17a2.tar.gz
feat: add novita client (#1132)
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 c87d2b5..c6b65bc 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -33,7 +33,7 @@ register_client!(
(bedrock, "bedrock", BedrockConfig, BedrockClient),
);
-pub const OPENAI_COMPATIBLE_PROVIDERS: [(&str, &str); 24] = [
+pub const OPENAI_COMPATIBLE_PROVIDERS: [(&str, &str); 25] = [
("ai21", "https://api.ai21.com/studio/v1"),
(
"cloudflare",
@@ -51,6 +51,7 @@ pub const OPENAI_COMPATIBLE_PROVIDERS: [(&str, &str); 24] = [
("minimax", "https://api.minimax.chat/v1"),
("mistral", "https://api.mistral.ai/v1"),
("moonshot", "https://api.moonshot.cn/v1"),
+ ("novita", "https://api.novita.ai/v3/openai"),
("openrouter", "https://openrouter.ai/api/v1"),
("ollama", "http://{OLLAMA_HOST}:11434/v1"),
("perplexity", "https://api.perplexity.ai"),