🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(model-bank): complete provider and subscription models (#19179)
YuTengjingdd6c80c17128
diff --git a/packages/model-bank/src/aiModels/__tests__/index.test.ts b/packages/model-bank/src/aiModels/__tests__/index.test.tsindex 92514515a31..e4fbbbffbc3 100644--- a/packages/model-bank/src/aiModels/__tests__/index.test.ts+++ b/packages/model-bank/src/aiModels/__tests__/index.test.ts@@ -106,7 +106,7 @@ describe('ChatGPT subscription models', () => {(model) => model.providerId === ModelProvider.ChatGPT,);- expect(models).toHaveLength(4);+ expect(models).toHaveLength(5);expect(models.every((model) => model.settings?.extendParams?.includes('preserveThinking')),).toBe(true);@@ -290,3 +290,61 @@ describe('vendor provider cards', () => {expect(glm53Flash?.settings?.searchImpl).toBe('params');});});++describe('recent direct-provider models', () => {+ it.each([+ ['openai', 'gpt-6-astra', 'gpt6ReasoningEffort'],+ ['google', 'gemini-3.8-flash', 'thinkingLevel3'],+ ['vertexai', 'gemini-3.8-flash', 'thinkingLevel3'],+ ['xai', 'grok-4.6', 'grok4_6ReasoningEffort'],+ ['qwen', 'qwen3.8-max', 'reasoningBudgetToken'],+ ['qwen', 'qwen3.8-max-0902', 'reasoningBudgetToken'],+ ])('exposes %s/%s with its reasoning controls', (providerId, id, reasoningParam) => {+ const model = LOBE_DEFAULT_MODEL_LIST.find(+ (entry) => entry.providerId === providerId && entry.id === id,+ );++ expect(model).toMatchObject({+ abilities: { functionCall: true, reasoning: true, vision: true },+ enabled: true,+ type: 'chat',+ });+ expect(model?.settings?.extendParams).toContain(reasoningParam);+ });+});++describe('Gemini 3.8 introductory pricing', () => {+ it.each(['google', 'vertexai'])('uses the published output rate for %s', (providerId) => {+ const model = LOBE_DEFAULT_MODEL_LIST.find(+ (entry) => entry.providerId === providerId && entry.id === 'gemini-3.8-flash',+ );+ expect(model?.pricing?.units).toContainEqual({+ name: 'textOutput',+ rate: 3.75,+ strategy: 'fixed',+ unit: 'millionTokens',+ });+ });+});++describe('subscription model catalogs', () => {+ it.each([+ ['chatgpt', 'gpt-6-astra', 'gpt6ReasoningEffort'],+ ['supergrok', 'grok-4.6', 'grok4_6ReasoningEffort'],+ ])('exposes %s/%s without usage-based pricing', (providerId, id, reasoningParam) => {+ const model = LOBE_DEFAULT_MODEL_LIST.find(+ (entry) => entry.providerId === providerId && entry.id === id,+ );+ expect(model).toMatchObject({ enabled: true, type: 'chat' });+ expect(model?.pricing).toBeUndefined();+ expect(model?.settings?.extendParams).toContain(reasoningParam);+ });++ it('keeps the ChatGPT context cap and thinking preservation', () => {+ const model = LOBE_DEFAULT_MODEL_LIST.find(+ (entry) => entry.providerId === 'chatgpt' && entry.id === 'gpt-6-astra',+ );+ expect(model?.contextWindowTokens).toBe(272_000);+ expect(model?.settings?.extendParams).toContain('preserveThinking');+ });+});diff --git a/packages/model-bank/src/aiModels/chatGPT.ts b/packages/model-bank/src/aiModels/chatGPT.tsindex e2670ed1bd8..86c3329de5f 100644--- a/packages/model-bank/src/aiModels/chatGPT.ts+++ b/packages/model-bank/src/aiModels/chatGPT.ts@@ -1,7 +1,13 @@import type { AIChatModelCard } from '../types/aiModel';import { openaiChatModels } from './openai';-const CHATGPT_MODEL_IDS = new Set(['gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5']);+const CHATGPT_MODEL_IDS = new Set([+ 'gpt-6-astra',+ 'gpt-5.6-sol',+ 'gpt-5.6-terra',+ 'gpt-5.6-luna',+ 'gpt-5.5',+]);/*** Models available through ChatGPT subscription authentication use the Codexdiff --git a/packages/model-bank/src/aiModels/google.ts b/packages/model-bank/src/aiModels/google.tsindex fc996e6bb8d..287d366c835 100644--- a/packages/model-bank/src/aiModels/google.ts+++ b/packages/model-bank/src/aiModels/google.ts@@ -150,6 +150,53 @@ const googleChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ audio: true,+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ video: true,+ vision: true,+ },+ contextWindowTokens: 1_048_576 + 65_536,+ description:+ 'Gemini 3.8 Flash improves long-horizon software engineering, autonomous agents, and complex multi-step reasoning.',+ displayName: 'Gemini 3.8 Flash',+ enabled: true,+ family: 'gemini',+ generation: 'gemini-3.8',+ id: 'gemini-3.8-flash',+ maxOutput: 65_536,+ /** Introductory rates through 2026-12-31; standard token rates double afterward.+ * @see https://ai.google.dev/gemini-api/docs/pricing+ */+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 0.5 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],+ },+ releasedAt: '2026-09-02',+ settings: {+ disabledParams: ['temperature', 'top_p'],+ extendParams: ['thinkingLevel3', 'urlContext'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {audio: true,diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.tsindex e728bd80431..f1bc3ead444 100644--- a/packages/model-bank/src/aiModels/openai.ts+++ b/packages/model-bank/src/aiModels/openai.ts@@ -10,6 +10,72 @@ import type {} from '../types/aiModel';export const openaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 1_050_000,+ description:+ 'OpenAI’s most capable model for complex reasoning, coding, computer use, research, and document creation.',+ displayName: 'GPT-6 Astra',+ enabled: true,+ id: 'gpt-6-astra',+ maxOutput: 128_000,+ /** @see https://developers.openai.com/api/docs/models/gpt-6-astra */+ pricing: {+ units: [+ {+ name: 'textInput',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 10, upTo: 272_000 },+ { rate: 20, upTo: 'infinity' },+ ],+ },+ {+ name: 'textInput_cacheRead',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 1, upTo: 272_000 },+ { rate: 2, upTo: 'infinity' },+ ],+ },+ {+ name: 'textInput_cacheWrite',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 12.5, upTo: 272_000 },+ { rate: 25, upTo: 'infinity' },+ ],+ },+ {+ name: 'textOutput',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 50, upTo: 272_000 },+ { rate: 75, upTo: 'infinity' },+ ],+ },+ ],+ },+ releasedAt: '2026-09-03',+ settings: {+ extendParams: ['gpt6ReasoningEffort', 'textVerbosity'],+ searchImpl: 'params',+ },+ type: 'chat',+ family: 'gpt',+ generation: 'gpt-6',+ knowledgeCutoff: '2026-04',+ },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.tsindex 88b95d8ce5e..3009394f2ae 100644--- a/packages/model-bank/src/aiModels/qwen.ts+++ b/packages/model-bank/src/aiModels/qwen.ts@@ -7,6 +7,76 @@ import {// https://help.aliyun.com/zh/model-studio/models?spm=a2c4g.11186623const qwenChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ video: true,+ },+ contextWindowTokens: 1_000_000,+ description:+ 'The September update to Qwen3.8 Max improves coding, multi-tool orchestration, and visual understanding.',+ displayName: 'Qwen3.8 Max 0902',+ enabled: true,+ family: 'qwen',+ generation: 'qwen3.8',+ id: 'qwen3.8-max-0902',+ maxOutput: 131_072,+ /** @see https://help.aliyun.com/zh/model-studio/qwen3-8-max */+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheWrite', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-09-02',+ settings: {+ extendParams: ['reasoningBudgetToken'],+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ video: true,+ },+ contextWindowTokens: 1_000_000,+ description:+ 'Qwen3.8 Max supports complex coding, multimodal understanding, and long-horizon agentic workflows with a 1M context window.',+ displayName: 'Qwen3.8 Max',+ enabled: true,+ family: 'qwen',+ generation: 'qwen3.8',+ id: 'qwen3.8-max',+ maxOutput: 131_072,+ /** @see https://help.aliyun.com/zh/model-studio/qwen3-8-max */+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheWrite', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-08-02',+ settings: {+ extendParams: ['reasoningBudgetToken'],+ searchImpl: 'params',+ },+ type: 'chat',+ },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/superGrok.ts b/packages/model-bank/src/aiModels/superGrok.tsindex 244beb70022..8f861c2d3cf 100644--- a/packages/model-bank/src/aiModels/superGrok.ts+++ b/packages/model-bank/src/aiModels/superGrok.ts@@ -3,10 +3,34 @@ import type { AIChatModelCard } from '../types/aiModel';// Grok models available through the SuperGrok / X Premium subscription.// Same model ids as the `xai` provider, but without pricing: usage is// covered by the flat-rate subscription, so per-token cost would mislead.-// Only the latest generation is listed by default — older models can still+// Recent generations are listed by default — older models can still// be pulled in via the remote model list.// ref: https://docs.x.ai/docs/modelsconst superGrokChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 500_000,+ description:+ "SpaceXAI's flagship model for coding, agentic tasks, and knowledge work — configurable reasoning (low/medium/high/xhigh).",+ displayName: 'Grok 4.6',+ enabled: true,+ family: 'grok',+ generation: 'grok-4.6',+ id: 'grok-4.6',+ knowledgeCutoff: '2026-02',+ releasedAt: '2026-08-12',+ settings: {+ extendParams: ['grok4_6ReasoningEffort'],+ searchImpl: 'params',+ },+ type: 'chat',+ },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/vertexai.ts b/packages/model-bank/src/aiModels/vertexai.tsindex c152a2bc8f8..ca33e7e58b3 100644--- a/packages/model-bank/src/aiModels/vertexai.ts+++ b/packages/model-bank/src/aiModels/vertexai.ts@@ -4,6 +4,47 @@ import { imagenGenParameters } from './google';// ref: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/modelsconst vertexaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ audio: true,+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ video: true,+ vision: true,+ },+ contextWindowTokens: 1_048_576 + 65_536,+ description:+ 'Gemini 3.8 Flash improves long-horizon software engineering, autonomous agents, and complex multi-step reasoning.',+ displayName: 'Gemini 3.8 Flash',+ enabled: true,+ family: 'gemini',+ generation: 'gemini-3.8',+ id: 'gemini-3.8-flash',+ maxOutput: 65_536,+ /** Introductory rates through 2026-12-31; standard token rates double afterward.+ * @see https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing+ */+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-09-02',+ settings: {+ disabledParams: ['temperature', 'top_p'],+ extendParams: ['thinkingLevel3', 'urlContext'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {audio: true,diff --git a/packages/model-bank/src/aiModels/xai.ts b/packages/model-bank/src/aiModels/xai.tsindex e348c896bb9..3460b87eca1 100644--- a/packages/model-bank/src/aiModels/xai.ts+++ b/packages/model-bank/src/aiModels/xai.ts@@ -2,6 +2,62 @@ import type { AIChatModelCard, AIImageModelCard, AIVideoModelCard } from '../typ// https://docs.x.ai/docs/modelsconst xaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ vision: true,+ structuredOutput: true,+ },+ contextWindowTokens: 500_000,+ description:+ 'Grok 4.6 is a frontier model for coding, long-running agents, and knowledge work with a 500K context window.',+ displayName: 'Grok 4.6',+ enabled: true,+ id: 'grok-4.6',+ /** @see https://docs.x.ai/developers/models/grok-4.6 */+ pricing: {+ units: [+ {+ name: 'textInput_cacheRead',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 0.5, upTo: 199_999 },+ { rate: 1, upTo: 'infinity' },+ ],+ },+ {+ name: 'textInput',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 2, upTo: 199_999 },+ { rate: 4, upTo: 'infinity' },+ ],+ },+ {+ name: 'textOutput',+ unit: 'millionTokens',+ strategy: 'tiered',+ tiers: [+ { rate: 6, upTo: 199_999 },+ { rate: 12, upTo: 'infinity' },+ ],+ },+ ],+ },+ releasedAt: '2026-08-12',+ settings: {+ extendParams: ['grok4_6ReasoningEffort'],+ searchImpl: 'params',+ },+ type: 'chat',+ family: 'grok',+ generation: 'grok-4.6',+ knowledgeCutoff: '2026-02',+ },{abilities: {functionCall: true,