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.

✨ feat(model-bank): add GPT-6.2 Astra and Sol (#23287)

Bryan3df144516ca4
diff --git a/locales/en-US/models.json b/locales/en-US/models.json
index a3038a91bc7..6b065dffe77 100644
--- a/locales/en-US/models.json
+++ b/locales/en-US/models.json
@@ -699,6 +699,8 @@
"gpt-6-sol.description": "GPT-6 Sol is built for complex coding and agentic workflows.",
"gpt-6.1-sol.description": "GPT-6.1 Sol delivers near-Astra performance for complex coding, computer use, and professional work at a lower cost.",
"gpt-6.1-terra.description": "GPT-6.1 Terra is a fast, efficient model for visual reasoning, precise computer use, and clear, natural writing.",
+ "gpt-6.2-astra.description": "GPT-6.2 Astra is built for demanding projects in software development, computer use, and professional documents.",
+ "gpt-6.2-sol.description": "GPT-6.2 Sol is an efficient model for everyday work, from coding to running agent workflows at scale.",
"gpt-audio.description": "GPT Audio is a general chat model for audio input/output, supported in the Chat Completions API.",
"gpt-image-1-mini.description": "A lower-cost GPT Image 1 variant with native text and image input and image output.",
"gpt-image-1.5.description": "An enhanced GPT Image 1 model with 4× faster generation, more precise editing, and improved text rendering.",
diff --git a/locales/zh-CN/models.json b/locales/zh-CN/models.json
index 58d8819e629..2c85221ea4a 100644
--- a/locales/zh-CN/models.json
+++ b/locales/zh-CN/models.json
@@ -699,6 +699,8 @@
"gpt-6-sol.description": "GPT-6 Sol 专为复杂的编码和代理工作流而设计。",
"gpt-6.1-sol.description": "GPT-6.1 Sol 以更低的成本提供接近 Astra 的性能,用于复杂编码、计算机使用和专业工作。",
"gpt-6.1-terra.description": "GPT-6.1 Terra 是一款快速、高效的模型,擅长视觉推理、精准的计算机操作以及清晰自然的写作。",
+ "gpt-6.2-astra.description": "GPT-6.2 Astra 面向高难度项目,擅长软件开发、计算机操作和专业文档编写。",
+ "gpt-6.2-sol.description": "GPT-6.2 Sol 是一款面向日常工作的高效模型,适用于编程和大规模运行智能体工作流。",
"gpt-audio.description": "GPT Audio 是支持音频输入/输出的通用对话模型,可通过 Chat Completions API 使用。",
"gpt-image-1-mini.description": "GPT Image 1 的低成本变体,原生支持文本与图像输入,以及图像输出。",
"gpt-image-1.5.description": "GPT Image 1 的增强版本,生成速度提升 4 倍,编辑更精准,文本渲染效果更佳。",
diff --git a/packages/model-bank/src/aiModels/__tests__/index.test.ts b/packages/model-bank/src/aiModels/__tests__/index.test.ts
index 2e578bcb6eb..f75911aeeb3 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(9);
+ expect(models).toHaveLength(11);
expect(
models.every((model) => model.settings?.extendParams?.includes('preserveThinking')),
).toBe(true);
@@ -309,6 +309,66 @@ describe('vendor provider cards', () => {
});
describe('recent direct-provider models', () => {
+ it.each([
+ {
+ cutoff: '2026-05',
+ id: 'gpt-6.2-astra',
+ rates: [
+ [8, 16],
+ [0.4, 0.8],
+ [10, 20],
+ [40, 60],
+ ],
+ },
+ {
+ cutoff: '2026-06',
+ id: 'gpt-6.2-sol',
+ rates: [
+ [2, 4],
+ [0.1, 0.2],
+ [2.5, 5],
+ [10, 15],
+ ],
+ },
+ ])('registers OpenAI $id with its published limits and rates', ({ cutoff, id, rates }) => {
+ const model = LOBE_DEFAULT_MODEL_LIST.find(
+ (entry) => entry.providerId === ModelProvider.OpenAI && entry.id === id,
+ );
+
+ expect(model).toMatchObject({
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_050_000,
+ enabled: true,
+ family: 'gpt',
+ generation: 'gpt-6.2',
+ isOfficial: true,
+ knowledgeCutoff: cutoff,
+ maxOutput: 128_000,
+ releasedAt: '2026-11-17',
+ settings: { extendParams: ['gpt6ReasoningEffort', 'textVerbosity'], searchImpl: 'params' },
+ type: 'chat',
+ });
+ expect(model?.pricing?.units).toEqual(
+ ['textInput', 'textInput_cacheRead', 'textInput_cacheWrite', 'textOutput'].map(
+ (name, index) => ({
+ name,
+ strategy: 'tiered',
+ tiers: [
+ { rate: rates[index][0], upTo: 272_000 },
+ { rate: rates[index][1], upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ }),
+ ),
+ );
+ });
+
it('registers GPT-6.1 Sol with its published limits, pricing, and reasoning controls', () => {
const model = LOBE_DEFAULT_MODEL_LIST.find(
(entry) => entry.providerId === ModelProvider.OpenAI && entry.id === 'gpt-6.1-sol',
@@ -405,6 +465,8 @@ describe('Gemini 4 Carbon introductory pricing', () => {
describe('subscription model catalogs', () => {
it.each([
+ ['chatgpt', 'gpt-6.2-astra', 'gpt6ReasoningEffort'],
+ ['chatgpt', 'gpt-6.2-sol', 'gpt6ReasoningEffort'],
['chatgpt', 'gpt-6-astra', 'gpt6ReasoningEffort'],
['chatgpt', 'gpt-6.1-sol', 'gpt6ReasoningEffort'],
['chatgpt', 'gpt-6.1-terra', 'gpt5_6ReasoningEffort'],
@@ -418,13 +480,16 @@ describe('subscription model catalogs', () => {
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');
- });
+ it.each(['gpt-6-astra', 'gpt-6.2-astra', 'gpt-6.2-sol'])(
+ 'keeps the ChatGPT context cap and thinking preservation for %s',
+ (id) => {
+ const model = LOBE_DEFAULT_MODEL_LIST.find(
+ (entry) => entry.providerId === 'chatgpt' && entry.id === id,
+ );
+ expect(model?.contextWindowTokens).toBe(272_000);
+ expect(model?.settings?.extendParams).toContain('preserveThinking');
+ },
+ );
});
describe('Anthropic cache-write pricing', () => {
diff --git a/packages/model-bank/src/aiModels/chatGPT.ts b/packages/model-bank/src/aiModels/chatGPT.ts
index bf3c9230f3b..bfaa778fb07 100644
--- a/packages/model-bank/src/aiModels/chatGPT.ts
+++ b/packages/model-bank/src/aiModels/chatGPT.ts
@@ -2,6 +2,8 @@ import type { AIChatModelCard } from '../types/aiModel';
import { openaiChatModels } from './openai';
const CHATGPT_MODEL_IDS = new Set([
+ 'gpt-6.2-astra',
+ 'gpt-6.2-sol',
'gpt-6-astra',
'gpt-6.1-sol',
'gpt-6.1-terra',
diff --git a/packages/model-bank/src/aiModels/openai/gpt62.ts b/packages/model-bank/src/aiModels/openai/gpt62.ts
new file mode 100644
index 00000000000..fab3549da4e
--- /dev/null
+++ b/packages/model-bank/src/aiModels/openai/gpt62.ts
@@ -0,0 +1,138 @@
+import type { AIChatModelCard } from '../../types/aiModel';
+
+export const openaiGpt62ChatModels: 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: 'gpt-6.2-astra',
+ isOfficial: true,
+ knowledgeCutoff: '2026-05',
+ maxOutput: 128_000,
+ /** @see https://developers.openai.com/api/docs/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,
+ },
+ 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',
+ isOfficial: true,
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ /** @see https://developers.openai.com/api/docs/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',
+ },
+];
diff --git a/packages/model-bank/src/aiModels/openai/index.ts b/packages/model-bank/src/aiModels/openai/index.ts
index 4f1d7d35a17..8312bc68efe 100644
--- a/packages/model-bank/src/aiModels/openai/index.ts
+++ b/packages/model-bank/src/aiModels/openai/index.ts
@@ -1,5 +1,6 @@
import type { AIChatModelCard } from '../../types/aiModel';
import { openaiDecisionModels } from './decision';
+import { openaiGpt62ChatModels } from './gpt62';
import { openaiLegacyChatModels } from './legacyChat';
import {
openaiASRModels,
@@ -15,6 +16,7 @@ export * from './decision';
export * from './nonChat';
export const openaiChatModels: AIChatModelCard[] = [
+ ...openaiGpt62ChatModels,
{
abilities: {
functionCall: true,
diff --git a/packages/model-runtime/src/providers/chatGPT/index.test.ts b/packages/model-runtime/src/providers/chatGPT/index.test.ts
index 10aae333b24..f1939612c1e 100644
--- a/packages/model-runtime/src/providers/chatGPT/index.test.ts
+++ b/packages/model-runtime/src/providers/chatGPT/index.test.ts
@@ -269,17 +269,21 @@ describe('LobeChatGPTAI', () => {
// `400 reasoning.mode is not supported with this model` (unsupported_value),
// leaving callSubAgent with no recovery path. The provider now strips
// `reasoning.mode` for models outside the gpt-5.6 family.
- it('strips reasoning.mode for Codex models that reject it', async () => {
- await instance.chat({
- messages: [{ content: 'Write a chapter', role: 'user' }],
- model: 'gpt-6.1-sol',
- reasoning: { effort: 'max', mode: 'pro', summary: 'auto' },
- });
+ it.each(['gpt-6.1-sol', 'gpt-6.2-astra', 'gpt-6.2-sol'])(
+ 'strips unsupported reasoning.mode for %s',
+ async (model) => {
+ await instance.chat({
+ messages: [{ content: 'Write a chapter', role: 'user' }],
+ model,
+ reasoning: { effort: 'max', mode: 'pro', summary: 'auto' },
+ });
- const request = (instance['client'].responses.create as Mock).mock.calls[0][0];
+ const request = (instance['client'].responses.create as Mock).mock.calls[0][0];
- expect(request.reasoning).toEqual({ effort: 'max', summary: 'auto' });
- });
+ expect(request.model).toBe(model);
+ expect(request.reasoning).toEqual({ effort: 'max', summary: 'auto' });
+ },
+ );
it('reduces mode-only reasoning to the provider baseline on a rejecting model', async () => {
await instance.chat({
diff --git a/packages/model-runtime/src/providers/openai/index.test.ts b/packages/model-runtime/src/providers/openai/index.test.ts
index a0c87b52f8a..b2761f3d8ba 100644
--- a/packages/model-runtime/src/providers/openai/index.test.ts
+++ b/packages/model-runtime/src/providers/openai/index.test.ts
@@ -490,26 +490,27 @@ describe('LobeOpenAI', () => {
expect(createCall.top_p).toBeUndefined();
});
- it('should prune the params GPT-6 Astra rejects and keep xhigh reasoning effort', async () => {
- const payload = {
- messages: [{ content: 'Hello', role: 'user' as const }],
- model: 'gpt-6-astra',
- reasoning_effort: 'xhigh' as const,
- temperature: 0.7,
- top_p: 0.9,
- };
-
- await instance.chat(payload);
+ it.each(['gpt-6-astra', 'gpt-6.2-astra', 'gpt-6.2-sol'])(
+ 'should prune unsupported params and keep xhigh reasoning effort for %s',
+ async (model) => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model,
+ reasoning_effort: 'xhigh',
+ temperature: 0.7,
+ top_p: 0.9,
+ });
- const createCall = (instance['client'].responses.create as Mock).mock.calls[0][0];
- expect(createCall).toMatchObject({
- model: 'gpt-6-astra',
- reasoning: { effort: 'xhigh', summary: 'auto' },
- });
- expect(createCall.temperature).toBeUndefined();
- expect(createCall.top_logprobs).toBeUndefined();
- expect(createCall.top_p).toBeUndefined();
- });
+ const createCall = (instance['client'].responses.create as Mock).mock.calls[0][0];
+ expect(createCall).toMatchObject({
+ model,
+ reasoning: { effort: 'xhigh', summary: 'auto' },
+ });
+ expect(createCall.temperature).toBeUndefined();
+ expect(createCall.top_logprobs).toBeUndefined();
+ expect(createCall.top_p).toBeUndefined();
+ },
+ );
it('should add search_context_size to web_search tool when OPENAI_SEARCH_CONTEXT_SIZE is set', async () => {
// Note: oaiSearchContextSize is read at module load time, not runtime
diff --git a/packages/model-runtime/src/providers/openai/modelId.test.ts b/packages/model-runtime/src/providers/openai/modelId.test.ts
index d39d267526b..5ea88eb0dd4 100644
--- a/packages/model-runtime/src/providers/openai/modelId.test.ts
+++ b/packages/model-runtime/src/providers/openai/modelId.test.ts
@@ -174,6 +174,8 @@ describe('supportsGPTResponsesReasoningEffortNone', () => {
it('should not support none reasoning effort on GPT-6, which removed it', () => {
expect(supportsGPTResponsesReasoningEffortNone('gpt-6-astra')).toBe(false);
expect(supportsGPTResponsesReasoningEffortNone('gpt-6.1-sol')).toBe(false);
+ expect(supportsGPTResponsesReasoningEffortNone('gpt-6.2-astra')).toBe(false);
+ expect(supportsGPTResponsesReasoningEffortNone('gpt-6.2-sol')).toBe(false);
});
it('should support none reasoning effort on GPT-6.1 Terra, whose model page lists it', () => {
expect(supportsGPTResponsesReasoningEffortNone('gpt-6.1-terra')).toBe(true);