Browse Source

refactor(core): 删除 higress endpoint

higress 是阿里 AI Gateway 的占位 endpoint,实际功能 custom / newapi 已覆盖
(都是用户自填 baseUrl 的 OpenAI 兼容代理)。用户反馈不需要单独保留。

- 删 packages/core/src/llm/providers/endpoints/higress.ts
- providers/index.ts 移除 HIGRESS 引用
- providers-schema.test:从 gatewayProviders / B3 清单 / 空 baseUrl 断言里
  移除 higress;总数 35 → 34 base, 42 → 41 total

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fanghanjun 6 months ago
parent
commit
a5c0d7ead0

+ 9 - 13
packages/core/src/__tests__/providers-schema.test.ts

@@ -3,7 +3,7 @@ import { getAllEndpoints, getEndpoint } from "../llm/providers/index.js";
 
 
 describe("providers structural integrity", () => {
 describe("providers structural integrity", () => {
   it("每个 provider 必填字段都存在", () => {
   it("每个 provider 必填字段都存在", () => {
-    const gatewayProviders = new Set(["custom", "higress", "newapi"]);
+    const gatewayProviders = new Set(["custom", "newapi"]);
     for (const p of getAllEndpoints()) {
     for (const p of getAllEndpoints()) {
       expect(p.id).toBeTruthy();
       expect(p.id).toBeTruthy();
       expect(p.label).toBeTruthy();
       expect(p.label).toBeTruthy();
@@ -79,15 +79,12 @@ describe("providers structural integrity", () => {
     }
     }
   });
   });
 
 
-  it("B3:中国原厂批次 3 全部收录(7 个)", () => {
+  it("B3:中国原厂批次 3 全部收录(6 个,R5 已删 higress)", () => {
     const ids = getAllEndpoints().map((p) => p.id);
     const ids = getAllEndpoints().map((p) => p.id);
-    for (const id of ["modelscope", "giteeai", "qiniu", "higress", "infiniai", "zeroone", "ai360"]) {
+    for (const id of ["modelscope", "giteeai", "qiniu", "infiniai", "zeroone", "ai360"]) {
       expect(ids).toContain(id);
       expect(ids).toContain(id);
     }
     }
-  });
-
-  it("B3:higress baseUrl 为空(gateway 占位)", () => {
-    expect(getEndpoint("higress")?.baseUrl).toBe("");
+    expect(ids).not.toContain("higress");
   });
   });
 
 
   it("B4:海外/本地/自定义/聚合/GH 全部收录(7 个)", () => {
   it("B4:海外/本地/自定义/聚合/GH 全部收录(7 个)", () => {
@@ -97,15 +94,14 @@ describe("providers structural integrity", () => {
     }
     }
   });
   });
 
 
-  it("B4:custom / newapi / higress baseUrl 为空", () => {
+  it("B4:custom / newapi baseUrl 为空(gateway 占位)", () => {
     expect(getEndpoint("custom")?.baseUrl).toBe("");
     expect(getEndpoint("custom")?.baseUrl).toBe("");
     expect(getEndpoint("newapi")?.baseUrl).toBe("");
     expect(getEndpoint("newapi")?.baseUrl).toBe("");
-    expect(getEndpoint("higress")?.baseUrl).toBe("");
   });
   });
 
 
-  it("B4:总 provider 数 = 35(不含 CodingPlan,R5 删除重复的 qwen 后)", () => {
+  it("B4:总 provider 数 = 34(不含 CodingPlan,R5 删 qwen / higress 后)", () => {
     const nonCoding = getAllEndpoints().filter((p) => !p.id.endsWith("CodingPlan"));
     const nonCoding = getAllEndpoints().filter((p) => !p.id.endsWith("CodingPlan"));
-    expect(nonCoding.length).toBe(35);
+    expect(nonCoding.length).toBe(34);
   });
   });
 
 
   it("B6:CodingPlan 7 个 provider 全部收录", () => {
   it("B6:CodingPlan 7 个 provider 全部收录", () => {
@@ -119,8 +115,8 @@ describe("providers structural integrity", () => {
     }
     }
   });
   });
 
 
-  it("B6:总 provider 数 = 42 (35 base + 7 CodingPlan)", () => {
-    expect(getAllEndpoints().length).toBe(42);
+  it("B6:总 provider 数 = 41 (34 base + 7 CodingPlan)", () => {
+    expect(getAllEndpoints().length).toBe(41);
   });
   });
 
 
   it("B6:CodingPlan provider 都走 anthropic-messages", () => {
   it("B6:CodingPlan provider 都走 anthropic-messages", () => {

+ 0 - 199
packages/core/src/llm/providers/endpoints/higress.ts

@@ -1,199 +0,0 @@
-/**
- * Higress AI Gateway
- *
- * - Higress:https://higress.cn/
- * - 阿里云原生 AI 网关,代理模式 OpenAI 兼容,具体模型由用户在 Higress 侧配置。
- */
-import type { InkosEndpoint } from "../types.js";
-
-export const HIGRESS: InkosEndpoint = {
-  id: "higress",
-  label: "Higress (网关)",
-  api: "openai-completions",
-  baseUrl: "",
-  models: [
-    { id: "qwen-turbo", maxOutput: 4096, contextWindowTokens: 131072, enabled: true },
-    { id: "qwen-plus", maxOutput: 4096, contextWindowTokens: 131072, enabled: true },
-    { id: "qwen-max", maxOutput: 4096, contextWindowTokens: 32768, enabled: true },
-    { id: "qwen-long", maxOutput: 4096, contextWindowTokens: 1000000 },
-    { id: "qwen-vl-plus-latest", maxOutput: 4096, contextWindowTokens: 32000, enabled: true },
-    { id: "qwen-vl-max-latest", maxOutput: 4096, contextWindowTokens: 32000, enabled: true },
-    { id: "qwen-math-turbo-latest", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "qwen-math-plus-latest", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "qwen-coder-turbo-latest", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-7b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-14b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-32b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-72b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-math-1.5b-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "qwen2.5-math-7b-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "qwen2.5-math-72b-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "qwen2.5-coder-1.5b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen2.5-coder-7b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "qwen-vl-v1", maxOutput: 4096, contextWindowTokens: 8000 },
-    { id: "qwen-vl-chat-v1", maxOutput: 4096, contextWindowTokens: 8000 },
-    { id: "moonshot-v1-8k", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "moonshot-v1-32k", maxOutput: 4096, contextWindowTokens: 32768, enabled: true },
-    { id: "moonshot-v1-128k", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "Baichuan4", maxOutput: 4096, contextWindowTokens: 32768, enabled: true },
-    { id: "Baichuan3-Turbo", maxOutput: 8192, contextWindowTokens: 32768, enabled: true },
-    { id: "Baichuan3-Turbo-128k", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "Baichuan2-Turbo", maxOutput: 8192, contextWindowTokens: 32768 },
-    { id: "yi-lightning", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-spark", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-medium", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-medium-200k", maxOutput: 4096, contextWindowTokens: 200000, enabled: true },
-    { id: "yi-large-turbo", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-large-rag", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-large-fc", maxOutput: 4096, contextWindowTokens: 32768, enabled: true },
-    { id: "yi-large", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "yi-vision", maxOutput: 4096, contextWindowTokens: 16384, enabled: true },
-    { id: "yi-large-preview", maxOutput: 4096, contextWindowTokens: 16384 },
-    { id: "yi-lightning-lite", maxOutput: 4096, contextWindowTokens: 16384 },
-    { id: "glm-4-flash", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "glm-4-flashx", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "glm-4-long", maxOutput: 4096, contextWindowTokens: 1024000 },
-    { id: "glm-4-air", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "glm-4-airx", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "glm-4-alltools", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "glm-4-plus", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "glm-4-0520", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "glm-4", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "glm-4v-plus", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "charglm-3", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "emohaa", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "360gpt2-pro", maxOutput: 7000, contextWindowTokens: 8192, enabled: true },
-    { id: "360gpt-pro", maxOutput: 7000, contextWindowTokens: 8192, enabled: true },
-    { id: "360gpt-turbo", maxOutput: 7000, contextWindowTokens: 8192, enabled: true },
-    { id: "360gpt-turbo-responsibility-8k", maxOutput: 2048, contextWindowTokens: 8192, enabled: true },
-    { id: "ERNIE-3.5-8K", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "ERNIE-3.5-8K-Preview", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "ERNIE-3.5-128K", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "ERNIE-4.0-8K-Latest", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "ERNIE-4.0-8K-Preview", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "ERNIE-4.0-Turbo-8K-Latest", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "ERNIE-4.0-Turbo-8K-Preview", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "ERNIE-Lite-Pro-128K", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "ERNIE-Speed-Pro-128K", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "ERNIE-Speed-128K", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "ERNIE-Character-8K", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "hunyuan-lite", maxOutput: 6000, contextWindowTokens: 256000, enabled: true },
-    { id: "hunyuan-standard", maxOutput: 2000, contextWindowTokens: 32000, enabled: true },
-    { id: "hunyuan-standard-256K", maxOutput: 6000, contextWindowTokens: 256000, enabled: true },
-    { id: "hunyuan-turbo", maxOutput: 4000, contextWindowTokens: 32000, enabled: true },
-    { id: "hunyuan-pro", maxOutput: 4000, contextWindowTokens: 32000, enabled: true },
-    { id: "hunyuan-vision", maxOutput: 4000, contextWindowTokens: 8000, enabled: true },
-    { id: "hunyuan-code", maxOutput: 4000, contextWindowTokens: 8000 },
-    { id: "hunyuan-functioncall", maxOutput: 4000, contextWindowTokens: 32000 },
-    { id: "hunyuan-role", maxOutput: 4000, contextWindowTokens: 8000 },
-    { id: "step-1-flash", maxOutput: 4096, contextWindowTokens: 8000, enabled: true },
-    { id: "step-1-8k", maxOutput: 4096, contextWindowTokens: 8000, enabled: true },
-    { id: "step-1-32k", maxOutput: 4096, contextWindowTokens: 32000, enabled: true },
-    { id: "step-1-128k", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "step-1-256k", maxOutput: 4096, contextWindowTokens: 256000 },
-    { id: "step-2-16k", maxOutput: 4096, contextWindowTokens: 16000, enabled: true },
-    { id: "step-1v-8k", maxOutput: 4096, contextWindowTokens: 8000, enabled: true },
-    { id: "step-1v-32k", maxOutput: 4096, contextWindowTokens: 32000, enabled: true },
-    { id: "step-1.5v-mini", maxOutput: 4096, contextWindowTokens: 32000, enabled: true },
-    { id: "lite", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "generalv3", maxOutput: 8192, contextWindowTokens: 8192, enabled: true },
-    { id: "pro-128k", maxOutput: 4096, contextWindowTokens: 131072, enabled: true },
-    { id: "generalv3.5", maxOutput: 8192, contextWindowTokens: 8192, enabled: true },
-    { id: "max-32k", maxOutput: 8192, contextWindowTokens: 32768, enabled: true },
-    { id: "4.0Ultra", maxOutput: 8192, contextWindowTokens: 8192, enabled: true },
-    { id: "o1-mini", maxOutput: 65536, contextWindowTokens: 128000, enabled: true, releasedAt: "2024-09-12" },
-    { id: "o1-preview", maxOutput: 32768, contextWindowTokens: 128000, enabled: true, releasedAt: "2024-09-12" },
-    { id: "gpt-4o-mini", maxOutput: 16385, contextWindowTokens: 128000, enabled: true },
-    { id: "gpt-4o", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "gpt-4o-2024-08-06", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4o-2024-05-13", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "chatgpt-4o-latest", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "gpt-4-turbo", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4-turbo-2024-04-09", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4-turbo-preview", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4-0125-preview", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4-1106-preview", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "gpt-4", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "gpt-4-0613", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "gpt-4-32k", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "gpt-4-32k-0613", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "gpt-3.5-turbo", maxOutput: 4096, contextWindowTokens: 16385 },
-    { id: "gpt-3.5-turbo-0125", maxOutput: 4096, contextWindowTokens: 16385 },
-    { id: "gpt-3.5-turbo-1106", maxOutput: 4096, contextWindowTokens: 16385 },
-    { id: "gpt-3.5-turbo-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "gpt-35-turbo", maxOutput: 4096, contextWindowTokens: 16385, enabled: true },
-    { id: "gpt-35-turbo-16k", maxOutput: 4096, contextWindowTokens: 16384 },
-    { id: "gpt-4-vision-preview", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "ai21-jamba-1.5-mini", maxOutput: 4096, contextWindowTokens: 262144 },
-    { id: "ai21-jamba-1.5-large", maxOutput: 4096, contextWindowTokens: 262144 },
-    { id: "cohere-command-r", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "cohere-command-r-plus", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "mistral-nemo", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "mistral-small", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "mistral-large", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "llama-3.2-11b-vision-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "llama-3.2-90b-vision-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "meta-llama-3.1-8b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "meta-llama-3.1-70b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "meta-llama-3.1-405b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "meta-llama-3-8b-instruct", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "meta-llama-3-70b-instruct", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "Phi-3.5-mini-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "Phi-3.5-vision-instrust", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "Phi-3-mini-4k-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "Phi-3-mini-128k-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "Phi-3-small-8k-instruct", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "Phi-3-small-128k-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "Phi-3-medium-4k-instruct", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "Phi-3-medium-128k-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
-    { id: "llama-3.2-11b-vision-preview", maxOutput: 8192, contextWindowTokens: 8192, enabled: true },
-    { id: "llama-3.2-90b-vision-preview", maxOutput: 8192, contextWindowTokens: 8192, enabled: true },
-    { id: "llama-3.1-8b-instant", maxOutput: 8192, contextWindowTokens: 131072, enabled: true },
-    { id: "llama-3.1-70b-versatile", maxOutput: 8192, contextWindowTokens: 131072, enabled: true },
-    { id: "llama3-groq-8b-8192-tool-use-preview", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "llama3-groq-70b-8192-tool-use-preview", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "llama3-8b-8192", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "llama3-70b-8192", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "gemma2-9b-it", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "gemma-7b-it", maxOutput: 4096, contextWindowTokens: 8192 },
-    { id: "mixtral-8x7b-32768", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "llava-v1.5-7b-4096-preview", maxOutput: 4096, contextWindowTokens: 4096 },
-    { id: "deepseek-chat", maxOutput: 4096, contextWindowTokens: 128000, enabled: true, releasedAt: "2024-09-05" },
-    { id: "claude-3-5-haiku-20241022", maxOutput: 8192, contextWindowTokens: 200000, enabled: true, releasedAt: "2024-11-05" },
-    { id: "claude-3-haiku-20240307", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2024-03-07" },
-    { id: "claude-3-sonnet-20240229", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2024-02-29" },
-    { id: "claude-3-opus-20240229", maxOutput: 4096, contextWindowTokens: 200000, enabled: true, releasedAt: "2024-02-29" },
-    { id: "claude-2.1", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2023-11-21" },
-    { id: "claude-2.0", maxOutput: 4096, contextWindowTokens: 100000, releasedAt: "2023-07-11" },
-    { id: "gemini-1.5-flash-latest", maxOutput: 8192, contextWindowTokens: 1008192, enabled: true },
-    { id: "gemini-1.5-flash-002", maxOutput: 8192, contextWindowTokens: 1008192, enabled: true, releasedAt: "2024-09-25" },
-    { id: "gemini-1.5-flash-001", maxOutput: 8192, contextWindowTokens: 1008192 },
-    { id: "gemini-1.5-flash-exp-0827", maxOutput: 8192, contextWindowTokens: 1008192, releasedAt: "2024-08-27" },
-    { id: "gemini-1.5-flash-8b", maxOutput: 8192, contextWindowTokens: 1008192, enabled: true, releasedAt: "2024-10-03" },
-    { id: "gemini-1.5-flash-8b-exp-0924", maxOutput: 8192, contextWindowTokens: 1008192, releasedAt: "2024-09-24" },
-    { id: "gemini-1.5-pro-latest", maxOutput: 8192, contextWindowTokens: 2008192, enabled: true, releasedAt: "2024-02-15" },
-    { id: "gemini-1.5-pro-002", maxOutput: 8192, contextWindowTokens: 2008192, enabled: true, releasedAt: "2024-09-24" },
-    { id: "gemini-1.5-pro-001", maxOutput: 8192, contextWindowTokens: 2008192, releasedAt: "2024-02-15" },
-    { id: "gemini-1.5-pro-exp-0827", maxOutput: 8192, contextWindowTokens: 2008192, releasedAt: "2024-08-27" },
-    { id: "gemini-1.5-pro-exp-0801", maxOutput: 8192, contextWindowTokens: 2008192, releasedAt: "2024-08-01" },
-    { id: "gemini-1.0-pro-latest", maxOutput: 2048, contextWindowTokens: 32768, releasedAt: "2023-12-06" },
-    { id: "gemini-1.0-pro-001", maxOutput: 2048, contextWindowTokens: 32768, releasedAt: "2023-12-06" },
-    { id: "gemini-1.0-pro-002", maxOutput: 2048, contextWindowTokens: 32768, releasedAt: "2023-12-06" },
-    { id: "open-mistral-nemo", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "mistral-small-latest", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "mistral-large-latest", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "codestral-latest", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "pixtral-12b-2409", maxOutput: 4096, contextWindowTokens: 128000, enabled: true },
-    { id: "ministral-3b-latest", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "ministral-8b-latest", maxOutput: 4096, contextWindowTokens: 128000 },
-    { id: "open-mistral-7b", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "open-mixtral-8x7b", maxOutput: 4096, contextWindowTokens: 32768 },
-    { id: "open-mixtral-8x22b", maxOutput: 4096, contextWindowTokens: 65536 },
-    { id: "open-codestral-mamba", maxOutput: 4096, contextWindowTokens: 256000 },
-    { id: "abab6.5s-chat", maxOutput: 4096, contextWindowTokens: 245760, enabled: true },
-    { id: "abab6.5g-chat", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "abab6.5t-chat", maxOutput: 4096, contextWindowTokens: 8192, enabled: true },
-    { id: "abab5.5-chat", maxOutput: 4096, contextWindowTokens: 16384 },
-    { id: "abab5.5s-chat", maxOutput: 4096, contextWindowTokens: 8192 },
-  ],
-};

+ 1 - 2
packages/core/src/llm/providers/index.ts

@@ -26,7 +26,6 @@ import { INTERNLM } from "./endpoints/internlm.js";
 import { MODELSCOPE } from "./endpoints/modelscope.js";
 import { MODELSCOPE } from "./endpoints/modelscope.js";
 import { GITEEAI } from "./endpoints/giteeai.js";
 import { GITEEAI } from "./endpoints/giteeai.js";
 import { QINIU } from "./endpoints/qiniu.js";
 import { QINIU } from "./endpoints/qiniu.js";
-import { HIGRESS } from "./endpoints/higress.js";
 import { INFINIAI } from "./endpoints/infiniai.js";
 import { INFINIAI } from "./endpoints/infiniai.js";
 import { ZEROONE } from "./endpoints/zeroone.js";
 import { ZEROONE } from "./endpoints/zeroone.js";
 import { AI360 } from "./endpoints/ai360.js";
 import { AI360 } from "./endpoints/ai360.js";
@@ -57,7 +56,7 @@ const ALL_PROVIDERS: readonly InkosEndpoint[] = [
   ANTHROPIC, OPENAI, GOOGLE, DEEPSEEK, MINIMAX,
   ANTHROPIC, OPENAI, GOOGLE, DEEPSEEK, MINIMAX,
   MOONSHOT, ZHIPU, SILICONCLOUD, PPIO, BAILIAN, VOLCENGINE, HUNYUAN, BAICHUAN, STEPFUN, WENXIN,
   MOONSHOT, ZHIPU, SILICONCLOUD, PPIO, BAILIAN, VOLCENGINE, HUNYUAN, BAICHUAN, STEPFUN, WENXIN,
   SPARK, SENSENOVA, TENCENTCLOUD, XIAOMI_MIMO, LONGCAT, INTERNLM,
   SPARK, SENSENOVA, TENCENTCLOUD, XIAOMI_MIMO, LONGCAT, INTERNLM,
-  MODELSCOPE, GITEEAI, QINIU, HIGRESS, INFINIAI, ZEROONE, AI360,
+  MODELSCOPE, GITEEAI, QINIU, INFINIAI, ZEROONE, AI360,
   OLLAMA, OPENROUTER, CUSTOM, MISTRAL, XAI, NEWAPI, GITHUB_COPILOT,
   OLLAMA, OPENROUTER, CUSTOM, MISTRAL, XAI, NEWAPI, GITHUB_COPILOT,
   // B6 CodingPlan(7 个)
   // B6 CodingPlan(7 个)
   KIMI_CODING_PLAN, MINIMAX_CODING_PLAN, BAILIAN_CODING_PLAN, GLM_CODING_PLAN, VOLCENGINE_CODING_PLAN, OPENCODE_CODING_PLAN, ASTRON_CODING_PLAN,
   KIMI_CODING_PLAN, MINIMAX_CODING_PLAN, BAILIAN_CODING_PLAN, GLM_CODING_PLAN, VOLCENGINE_CODING_PLAN, OPENCODE_CODING_PLAN, ASTRON_CODING_PLAN,