From 5663acdd7d34c5b4ab961ba07465c8b66761c435 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 23 Jun 2025 12:00:31 +0800 Subject: feat: abandon support for lingyiwanwu client (#1327) --- Argcfile.sh | 1 - config.example.yaml | 6 ------ models.yaml | 15 --------------- src/client/mod.rs | 3 +-- 4 files changed, 1 insertion(+), 24 deletions(-) diff --git a/Argcfile.sh b/Argcfile.sh index e03c3a1..c38d9fa 100755 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -317,7 +317,6 @@ _argc_before() { github,gpt-4o-mini,https://models.inference.ai.azure.com \ groq,llama-3.1-8b-instant,https://api.groq.com/openai/v1 \ hunyuan,hunyuan-large,https://api.hunyuan.cloud.tencent.com/v1 \ - lingyiwanwu,yi-lightning,https://api.lingyiwanwu.com/v1 \ minimax,MiniMax-Text-01,https://api.minimax.chat/v1 \ mistral,mistral-small-latest,https://api.mistral.ai/v1 \ moonshot,moonshot-v1-8k,https://api.moonshot.cn/v1 \ diff --git a/config.example.yaml b/config.example.yaml index 0c41554..9537b0e 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -276,12 +276,6 @@ clients: api_base: https://open.bigmodel.cn/api/paas/v4 api_key: xxx - # See https://platform.lingyiwanwu.com/docs - - type: openai-compatible - name: lingyiwanwu - api_base: https://api.lingyiwanwu.com/v1 - api_key: xxx - # See https://platform.minimaxi.com/document/Fast%20access - type: openai-compatible name: minimax diff --git a/models.yaml b/models.yaml index c8a9fcf..e7ca97e 100644 --- a/models.yaml +++ b/models.yaml @@ -1408,21 +1408,6 @@ max_input_tokens: 4096 input_price: 0.112 -# Links: -# - https://platform.lingyiwanwu.com/docs#%E6%A8%A1%E5%9E%8B%E4%B8%8E%E8%AE%A1%E8%B4%B9 -# - https://platform.lingyiwanwu.com/docs/api-reference#create-chat-completion -- provider: lingyiwanwu - models: - - name: yi-lightning - max_input_tokens: 16384 - input_price: 0.14 - output_price: 0.14 - - name: yi-vision-v2 - max_input_tokens: 16384 - input_price: 0.84 - output_price: 0.84 - supports_vision: true - # Links: # - https://platform.minimaxi.com/document/Price # - https://platform.minimaxi.com/document/ChatCompletion%20v2 diff --git a/src/client/mod.rs b/src/client/mod.rs index 5492497..d0a4574 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); 19] = [ +pub const OPENAI_COMPATIBLE_PROVIDERS: [(&str, &str); 18] = [ ("ai21", "https://api.ai21.com/studio/v1"), ( "cloudflare", @@ -45,7 +45,6 @@ pub const OPENAI_COMPATIBLE_PROVIDERS: [(&str, &str); 19] = [ ("github", "https://models.inference.ai.azure.com"), ("groq", "https://api.groq.com/openai/v1"), ("hunyuan", "https://api.hunyuan.cloud.tencent.com/v1"), - ("lingyiwanwu", "https://api.lingyiwanwu.com/v1"), ("minimax", "https://api.minimax.chat/v1"), ("mistral", "https://api.mistral.ai/v1"), ("moonshot", "https://api.moonshot.cn/v1"), -- cgit v1.2.3