Skip to content

🤯 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.

💄 style(model-bank): add GPT-6.2 to Azure and OpenRouter (#23376)

YuTengjing128738687203
diff --git a/packages/model-bank/src/aiModels/__tests__/index.test.ts b/packages/model-bank/src/aiModels/__tests__/index.test.ts
index f75911aeeb3..ff9a4fa2aad 100644
--- a/packages/model-bank/src/aiModels/__tests__/index.test.ts
+++ b/packages/model-bank/src/aiModels/__tests__/index.test.ts
@@ -409,6 +409,10 @@ describe('recent direct-provider models', () => {
it.each([
['openai', 'gpt-6-astra', 'gpt6ReasoningEffort'],
+ ['azure', 'gpt-6.2-astra', 'gpt6ReasoningEffort'],
+ ['azure', 'gpt-6.2-sol', 'gpt6ReasoningEffort'],
+ ['openrouter', 'openai/gpt-6.2-astra', 'gpt6ReasoningEffort'],
+ ['openrouter', 'openai/gpt-6.2-sol', 'gpt6ReasoningEffort'],
['google', 'gemini-3.8-flash', 'thinkingLevel3'],
['vertexai', 'gemini-3.8-flash', 'thinkingLevel3'],
['google', 'gemini-4-carbon', 'thinkingLevel3'],
@@ -431,6 +435,33 @@ describe('recent direct-provider models', () => {
});
});
+describe('GPT-6.2 reseller cards', () => {
+ it.each([
+ ['azure', 'gpt-6.2-astra', 'gpt-6.2-astra'],
+ ['azure', 'gpt-6.2-sol', 'gpt-6.2-sol'],
+ ['openrouter', 'openai/gpt-6.2-astra', 'gpt-6.2-astra'],
+ ['openrouter', 'openai/gpt-6.2-sol', 'gpt-6.2-sol'],
+ ])('prices %s/%s at the official OpenAI list price', (providerId, id, officialId) => {
+ const official = LOBE_DEFAULT_MODEL_LIST.find(
+ (entry) => entry.providerId === 'openai' && entry.id === officialId,
+ );
+ const model = LOBE_DEFAULT_MODEL_LIST.find(
+ (entry) => entry.providerId === providerId && entry.id === id,
+ );
+ expect(official?.isOfficial).toBe(true);
+ expect(model?.isOfficial).toBeUndefined();
+ expect(model?.pricing).toEqual(official?.pricing);
+ expect(model?.contextWindowTokens).toBe(official?.contextWindowTokens);
+ });
+
+ it.each(['gpt-6.2-astra', 'gpt-6.2-sol'])('deploys azure/%s under its model id', (id) => {
+ const model = LOBE_DEFAULT_MODEL_LIST.find(
+ (entry) => entry.providerId === 'azure' && entry.id === id,
+ );
+ expect(model?.config?.deploymentName).toBe(id);
+ });
+});
+
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(
diff --git a/packages/model-bank/src/aiModels/azure.ts b/packages/model-bank/src/aiModels/azure.ts
index 8ed8c4de436..ecb9d8d3386 100644
--- a/packages/model-bank/src/aiModels/azure.ts
+++ b/packages/model-bank/src/aiModels/azure.ts
@@ -1,6 +1,144 @@
import type { AIChatModelCard, AIImageModelCard } from '../types/aiModel';
const azureChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ config: {
+ deploymentName: 'gpt-6.2-astra',
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ 'GPT-6.2 Astra is built for demanding projects in software development, computer use, and professional documents.',
+ displayName: 'GPT-6.2 Astra',
+ enabled: true,
+ family: 'gpt',
+ generation: 'gpt-6.2',
+ id: 'gpt-6.2-astra',
+ knowledgeCutoff: '2026-05',
+ maxOutput: 128_000,
+ /** @see https://ai.azure.com/catalog/models/gpt-6.2-astra */
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 8, upTo: 272_000 },
+ { rate: 16, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.4, upTo: 272_000 },
+ { rate: 0.8, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 272_000 },
+ { rate: 20, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 40, upTo: 272_000 },
+ { rate: 60, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-11-17',
+ settings: {
+ extendParams: ['gpt6ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ config: {
+ deploymentName: 'gpt-6.2-sol',
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ 'GPT-6.2 Sol is an efficient model for everyday work, from coding to running agent workflows at scale.',
+ displayName: 'GPT-6.2 Sol',
+ enabled: true,
+ family: 'gpt',
+ generation: 'gpt-6.2',
+ id: 'gpt-6.2-sol',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ /** @see https://ai.azure.com/catalog/models/gpt-6.2-sol */
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2, upTo: 272_000 },
+ { rate: 4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 272_000 },
+ { rate: 0.2, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2.5, upTo: 272_000 },
+ { rate: 5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 272_000 },
+ { rate: 15, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-11-17',
+ settings: {
+ extendParams: ['gpt6ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openrouter/gpt62.ts b/packages/model-bank/src/aiModels/openrouter/gpt62.ts
new file mode 100644
index 00000000000..e32aa25d767
--- /dev/null
+++ b/packages/model-bank/src/aiModels/openrouter/gpt62.ts
@@ -0,0 +1,136 @@
+import type { AIChatModelCard } from '../../types/aiModel';
+
+export const openrouterGpt62Models: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ 'GPT-6.2 Astra is built for demanding projects in software development, computer use, and professional documents.',
+ displayName: 'GPT-6.2 Astra',
+ enabled: true,
+ family: 'gpt',
+ generation: 'gpt-6.2',
+ id: 'openai/gpt-6.2-astra',
+ knowledgeCutoff: '2026-05',
+ maxOutput: 128_000,
+ /** @see https://openrouter.ai/openai/gpt-6.2-astra */
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 8, upTo: 272_000 },
+ { rate: 16, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.4, upTo: 272_000 },
+ { rate: 0.8, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 272_000 },
+ { rate: 20, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 40, upTo: 272_000 },
+ { rate: 60, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-11-17',
+ settings: {
+ extendParams: ['gpt6ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ 'GPT-6.2 Sol is an efficient model for everyday work, from coding to running agent workflows at scale.',
+ displayName: 'GPT-6.2 Sol',
+ enabled: true,
+ family: 'gpt',
+ generation: 'gpt-6.2',
+ id: 'openai/gpt-6.2-sol',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ /** @see https://openrouter.ai/openai/gpt-6.2-sol */
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2, upTo: 272_000 },
+ { rate: 4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 272_000 },
+ { rate: 0.2, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2.5, upTo: 272_000 },
+ { rate: 5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 272_000 },
+ { rate: 15, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-11-17',
+ settings: {
+ extendParams: ['gpt6ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+];
diff --git a/packages/model-bank/src/aiModels/openrouter/index.ts b/packages/model-bank/src/aiModels/openrouter/index.ts
index ae3107a405a..7426beb4413 100644
--- a/packages/model-bank/src/aiModels/openrouter/index.ts
+++ b/packages/model-bank/src/aiModels/openrouter/index.ts
@@ -1,6 +1,7 @@
import type { AIChatModelCard } from '../../types/aiModel';
import { openrouterDecisionModels } from './decision';
import { openrouterGoogleModels } from './google';
+import { openrouterGpt62Models } from './gpt62';
// https://openrouter.ai/docs/api-reference/list-available-models
const openrouterChatModels: AIChatModelCard[] = [
@@ -107,6 +108,7 @@ const openrouterChatModels: AIChatModelCard[] = [
settings: { extendParams: ['disableContextCaching'], searchImpl: 'params' },
type: 'chat',
},
+ ...openrouterGpt62Models,
{
abilities: {
functionCall: true,