summaryrefslogtreecommitdiffstats
path: root/src/client/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-28 06:04:36 +0800
committerGitHub <noreply@github.com>2024-07-28 06:04:36 +0800
commit0e740d81e94505bd57036755abaaecb12c3b26e3 (patch)
tree49000370fb12e4e5e1f1bd4d145104f2f502aa16 /src/client/mod.rs
parentf5e8e872b08d2aa9b3c063b0a98c59f842f94ecc (diff)
downloadaichat-0e740d81e94505bd57036755abaaecb12c3b26e3.tar.gz
feat: abandon rag_dedicated client and improve (#757)
Diffstat (limited to 'src/client/mod.rs')
-rw-r--r--src/client/mod.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index b2bd3de..80f526a 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -22,12 +22,6 @@ register_client!(
OpenAICompatibleConfig,
OpenAICompatibleClient
),
- (
- rag_dedicated,
- "rag-dedicated",
- RagDedicatedConfig,
- RagDedicatedClient
- ),
(gemini, "gemini", GeminiConfig, GeminiClient),
(claude, "claude", ClaudeConfig, ClaudeClient),
(cohere, "cohere", CohereConfig, CohereClient),
@@ -46,11 +40,13 @@ register_client!(
(qianwen, "qianwen", QianwenConfig, QianwenClient),
);
-pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 12] = [
+pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 14] = [
("deepinfra", "https://api.deepinfra.com/v1/openai"),
("deepseek", "https://api.deepseek.com"),
("fireworks", "https://api.fireworks.ai/inference/v1"),
("groq", "https://api.groq.com/openai/v1"),
+ ("jina", "https://api.jina.ai/v1"),
+ ("lingyiwanwu", "https://api.lingyiwanwu.com/v1"),
("mistral", "https://api.mistral.ai/v1"),
("moonshot", "https://api.moonshot.cn/v1"),
("openrouter", "https://openrouter.ai/api/v1"),
@@ -58,10 +54,5 @@ pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 12] = [
("perplexity", "https://api.perplexity.ai"),
("together", "https://api.together.xyz/v1"),
("zhipuai", "https://open.bigmodel.cn/api/paas/v4"),
- ("lingyiwanwu", "https://api.lingyiwanwu.com/v1"),
-];
-
-pub const RAG_DEDICATED_PLATFORMS: [(&str, &str); 2] = [
- ("jina", "https://api.jina.ai/v1"),
("voyageai", "https://api.voyageai.com/v1"),
];