Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧬 feat: Resolve GPT Point Releases to Their Family and Add GPT-6.1 Sol (#16526)

Danny Avilae9d1d330b1e1
diff --git a/.env.example b/.env.example
index 454f846030..05c8baeadf 100644
--- a/.env.example
+++ b/.env.example
@@ -595,7 +595,7 @@ GOOGLE_KEY=user_provided
#============#
OPENAI_API_KEY=user_provided
-# OPENAI_MODELS=gpt-6-astra,gpt-6-sol,gpt-6-luna,gpt-5.6,gpt-5.6-terra,gpt-5.6-luna,gpt-5.5,gpt-5.5-pro,chat-latest,gpt-5.4,gpt-5.4-pro,gpt-5.4-mini,gpt-5.4-nano,gpt-5.3-codex,gpt-5.2,gpt-5,gpt-5-codex,gpt-5-mini,gpt-5-nano,o3-pro,o3,o4-mini,gpt-4.1,gpt-4.1-mini,gpt-4.1-nano,o3-mini,o1-pro,o1,gpt-4o,gpt-4o-mini
+# OPENAI_MODELS=gpt-6-astra,gpt-6.1-sol,gpt-6-sol,gpt-6-luna,gpt-5.6,gpt-5.6-terra,gpt-5.6-luna,gpt-5.5,gpt-5.5-pro,chat-latest,gpt-5.4,gpt-5.4-pro,gpt-5.4-mini,gpt-5.4-nano,gpt-5.3-codex,gpt-5.2,gpt-5,gpt-5-codex,gpt-5-mini,gpt-5-nano,o3-pro,o3,o4-mini,gpt-4.1,gpt-4.1-mini,gpt-4.1-nano,o3-mini,o1-pro,o1,gpt-4o,gpt-4o-mini
DEBUG_OPENAI=false
diff --git a/packages/api/src/endpoints/config/responses.spec.ts b/packages/api/src/endpoints/config/responses.spec.ts
index 6455924c7d..9c6bb8bd39 100644
--- a/packages/api/src/endpoints/config/responses.spec.ts
+++ b/packages/api/src/endpoints/config/responses.spec.ts
@@ -21,7 +21,7 @@ const env = { ...process.env };
const enabled = { default: true, on: true, off: false };
const disabled = { default: false, on: false, off: false };
const optIn = { default: false, on: true, off: false };
-const models = ['gpt-6-sol', 'gpt-6-luna', 'gpt-6-astra'];
+const models = ['gpt-6-sol', 'gpt-6.1-sol', 'gpt-6-luna', 'gpt-6-astra'];
function grouped(overrides: Partial<TAzureGroup> = {}) {
const azure = validateAzureGroups([
{
diff --git a/packages/api/src/endpoints/config/responses.ts b/packages/api/src/endpoints/config/responses.ts
index d12b9b8f1d..a82115c5ef 100644
--- a/packages/api/src/endpoints/config/responses.ts
+++ b/packages/api/src/endpoints/config/responses.ts
@@ -1,4 +1,8 @@
-import { EModelEndpoint, mapModelToAzureConfig } from 'librechat-data-provider';
+import {
+ EModelEndpoint,
+ mapModelToAzureConfig,
+ responsesPreferredOpenAIModels,
+} from 'librechat-data-provider';
import type { ResponsesApiRouting } from 'librechat-data-provider';
import type { AppConfig } from '@librechat/data-schemas';
import { getOpenAIEndpointParameters } from '../openai/parameters';
@@ -19,7 +23,7 @@ export function getResponsesApiRouting(
const models =
isAzure && azureConfig
? Object.keys(azureConfig.modelGroupMap ?? {})
- : ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna'];
+ : responsesPreferredOpenAIModels;
const result: ResponsesApiRouting = {};
for (const model of ['*', ...models]) {
try {
diff --git a/packages/api/src/endpoints/openai/llm.ts b/packages/api/src/endpoints/openai/llm.ts
index 2f790d5205..b79e642ae4 100644
--- a/packages/api/src/endpoints/openai/llm.ts
+++ b/packages/api/src/endpoints/openai/llm.ts
@@ -6,6 +6,7 @@ import {
removeNullishValues,
prefersResponsesApiByModel,
supportsAdaptiveThinking,
+ gpt6Tier,
} from 'librechat-data-provider';
import type { BindToolsInput } from '@librechat/agents/langchain/language_models/chat_models';
import type { AzureOpenAIInput } from '@librechat/agents/langchain/openai';
@@ -923,8 +924,8 @@ export function getOpenAILLMConfig({
* The drop loop later removes the flag, but it must already govern effort. */
if (responsesApiExplicitlyOptedOut) llmConfig.useResponsesApi = false;
- const solLunaRulesApply =
- firstPartyEndpoint && /^gpt-6-(?:sol|luna)(?:-|$)/i.test(llmConfig.model ?? '');
+ const tier = gpt6Tier(llmConfig.model);
+ const solLunaRulesApply = firstPartyEndpoint && (tier === 'sol' || tier === 'luna');
if (!useOpenRouter) {
hasModelKwargs =
applyReasoningConfig({
diff --git a/packages/api/src/endpoints/openai/sol-luna.spec.ts b/packages/api/src/endpoints/openai/sol-luna.spec.ts
index 6eecaf9aea..ca49ac1cfe 100644
--- a/packages/api/src/endpoints/openai/sol-luna.spec.ts
+++ b/packages/api/src/endpoints/openai/sol-luna.spec.ts
@@ -1,7 +1,12 @@
import { createTxMethods } from '@librechat/data-schemas';
import { HumanMessage } from '@librechat/agents/langchain';
import { Providers, initializeModel } from '@librechat/agents';
-import { EModelEndpoint, ReasoningEffort, ReasoningParameterFormat } from 'librechat-data-provider';
+import {
+ gpt6Tier,
+ EModelEndpoint,
+ ReasoningEffort,
+ ReasoningParameterFormat,
+} from 'librechat-data-provider';
import type { AIMessageChunk } from '@librechat/agents/langchain';
import type { OpenAIConfiguration } from '~/types';
import { computeUsageCostUSD, recordCollectedUsage } from '~/agents/usage';
@@ -28,7 +33,7 @@ const azure = {
azureOpenAIApiVersion: '2025-04-01-preview',
};
-describe.each(['gpt-6-sol', 'gpt-6-luna'])('%s requests', (model) => {
+describe.each(['gpt-6-sol', 'gpt-6.1-sol', 'gpt-6-luna'])('%s requests', (model) => {
const config = (overrides: Partial<Parameters<typeof getOpenAILLMConfig>[0]> = {}) =>
getOpenAILLMConfig({
apiKey: 'test-key',
@@ -404,7 +409,7 @@ describe.each(['gpt-6-sol', 'gpt-6-luna'])('%s requests', (model) => {
if (!chatCompletions) {
const usage = { ...message.usage_metadata!, provider: Providers.OPENAI, model };
// Full prompt crosses 272K: all reported categories use premium rates.
- const expected = model === 'gpt-6-sol' ? 0.8915 : 0.044575;
+ const expected = gpt6Tier(model) === 'sol' ? 0.8915 : 0.044575;
expect(computeUsageCostUSD(usage, pricing)).toBeCloseTo(expected, 8);
const spendTokens = jest.fn().mockResolvedValue(undefined);
const spendStructuredTokens = jest.fn().mockResolvedValue(undefined);
diff --git a/packages/api/src/utils/tokens.spec.ts b/packages/api/src/utils/tokens.spec.ts
index b8f3ae3b93..d1880dd517 100644
--- a/packages/api/src/utils/tokens.spec.ts
+++ b/packages/api/src/utils/tokens.spec.ts
@@ -141,6 +141,32 @@ describe('Gemini 3.8 Flash', () => {
});
});
+describe('GPT point releases', () => {
+ it('inherit their family context window and output limit', () => {
+ for (const model of ['gpt-6.1-sol', 'gpt-6.1-sol-2026-10-01', 'openai/gpt-6.1-sol']) {
+ expect(getModelMaxTokens(model, EModelEndpoint.openAI)).toBe(1050000);
+ expect(getModelMaxOutputTokens(model, EModelEndpoint.openAI)).toBe(128000);
+ }
+ expect(getModelMaxTokens('gpt-6.2-astra', EModelEndpoint.openAI)).toBe(1050000);
+ expect(getModelMaxTokens('us.openai.gpt-6.1-sol', EModelEndpoint.bedrock)).toBe(950000);
+ });
+
+ it('prefer an explicit entry for the release over its family', () => {
+ const override: EndpointTokenConfig = {
+ 'gpt-6.1-sol': { context: 400000, prompt: 1, completion: 1 },
+ };
+ expect(getModelMaxTokens('gpt-6.1-sol', EModelEndpoint.openAI, override)).toBe(400000);
+ expect(findMatchingPattern('gpt-6.1-sol', { 'gpt-6-sol': 1, 'gpt-6.1-sol': 2 })).toBe(
+ 'gpt-6.1-sol',
+ );
+ });
+
+ it('leave unknown families unresolved', () => {
+ expect(getModelMaxTokens('gpt-7.1-sol', EModelEndpoint.openAI)).toBeUndefined();
+ expect(findMatchingPattern('gpt-6.1-nova', { 'gpt-6-sol': 1 })).toBeNull();
+ });
+});
+
describe('GPT-6 Astra', () => {
it('resolves 1.05M context and 128K output', () => {
expect(getModelMaxTokens('gpt-6-astra', EModelEndpoint.openAI)).toBe(1050000);
diff --git a/packages/api/src/utils/tokens.ts b/packages/api/src/utils/tokens.ts
index 6c9d4c506f..50a76e45ff 100644
--- a/packages/api/src/utils/tokens.ts
+++ b/packages/api/src/utils/tokens.ts
@@ -1,5 +1,10 @@
import z from 'zod';
-import { EModelEndpoint, supportsContext1m, supportsOutput128k } from 'librechat-data-provider';
+import {
+ EModelEndpoint,
+ supportsContext1m,
+ supportsOutput128k,
+ gptPointReleaseFamily,
+} from 'librechat-data-provider';
import type { EndpointTokenConfig, TokenConfig } from '~/types';
/**
@@ -632,8 +637,20 @@ function findLongestKey(lowerModelName: string, tokensMap: ModelKeyedMap): strin
* A key that carries the vendor itself is already the most specific answer and
* is kept. `EndpointTokenConfig` is an arbitrary record, and one built from
* OpenRouter is keyed by `org/model`, so those must still beat a bare `model`.
+ *
+ * A GPT point release with no key of its own (`gpt-6.1-sol`) resolves to its
+ * family's (`gpt-6-sol`), for context windows, output limits and pricing alike.
*/
export function findMatchingPattern(modelName: string, tokensMap: ModelKeyedMap): string | null {
+ const direct = findVendorAwarePattern(modelName, tokensMap);
+ if (direct != null) {
+ return direct;
+ }
+ const family = gptPointReleaseFamily(modelName);
+ return family == null ? null : findVendorAwarePattern(family, tokensMap);
+}
+
+function findVendorAwarePattern(modelName: string, tokensMap: ModelKeyedMap): string | null {
const lowerModelName = modelName.toLowerCase();
const slashIndex = lowerModelName.lastIndexOf('/');
if (slashIndex === -1) {
diff --git a/packages/data-provider/specs/sol-luna.spec.ts b/packages/data-provider/specs/sol-luna.spec.ts
index 9feeedbfae..b00b9072c8 100644
--- a/packages/data-provider/specs/sol-luna.spec.ts
+++ b/packages/data-provider/specs/sol-luna.spec.ts
@@ -3,7 +3,7 @@ import { EModelEndpoint } from '../src/schemas';
import { ReasoningEffort } from '../src/types';
import { applyModelAwareDefaults, paramSettings } from '../src/parameterSettings';
-describe.each(['gpt-6-sol', 'gpt-6-luna'])('%s catalog and settings', (model) => {
+describe.each(['gpt-6-sol', 'gpt-6.1-sol', 'gpt-6-luna'])('%s catalog and settings', (model) => {
it('offers native OpenAI and Agents support without advertising legacy Assistants support', () => {
for (const endpoint of [EModelEndpoint.openAI, EModelEndpoint.agents]) {
expect(defaultModels[endpoint]).toContain(model);
diff --git a/packages/data-provider/src/config.ts b/packages/data-provider/src/config.ts
index 308396051d..697537a677 100644
--- a/packages/data-provider/src/config.ts
+++ b/packages/data-provider/src/config.ts
@@ -3364,7 +3364,12 @@ export const alternateName = {
const responsesOnlyOpenAIModels = ['gpt-6-astra'];
/** Tool calls with Sol/Luna's default reasoning require Responses. Do not offer
* these on Assistants, which cannot use the native request-routing path. */
-const responsesReasoningOpenAIModels = ['gpt-6-sol', 'gpt-6-luna'];
+const responsesReasoningOpenAIModels = ['gpt-6.1-sol', 'gpt-6-sol', 'gpt-6-luna'];
+/** Catalog models whose native execution defaults to the Responses API. */
+export const responsesPreferredOpenAIModels: readonly string[] = [
+ ...responsesOnlyOpenAIModels,
+ ...responsesReasoningOpenAIModels,
+];
const sharedOpenAIModels = [
'gpt-5.6',
diff --git a/packages/data-provider/src/families.spec.ts b/packages/data-provider/src/families.spec.ts
new file mode 100644
index 0000000000..600807cac3
--- /dev/null
+++ b/packages/data-provider/src/families.spec.ts
@@ -0,0 +1,45 @@
+import { gpt6Tier, gptPointReleaseFamily } from './families';
+
+describe('gptPointReleaseFamily', () => {
+ it.each([
+ ['gpt-6.1-sol', 'gpt-6-sol'],
+ ['GPT-6.1-Sol', 'GPT-6-Sol'],
+ ['gpt-6.1-sol-2026-10-01', 'gpt-6-sol-2026-10-01'],
+ ['gpt-6.2-astra', 'gpt-6-astra'],
+ ['openai/gpt-6.1-luna', 'openai/gpt-6-luna'],
+ ['us.openai.gpt-6.1-sol', 'us.openai.gpt-6-sol'],
+ ['gpt-7.3-sol', 'gpt-7-sol'],
+ ])('maps %s to its family %s', (model, family) => {
+ expect(gptPointReleaseFamily(model)).toBe(family);
+ });
+
+ it.each([
+ 'gpt-6-sol',
+ 'gpt-5.6',
+ 'gpt-6.1',
+ 'chatgpt-4o-latest',
+ 'mygpt-6.1-sol',
+ 'claude-opus-5-5',
+ ])('leaves %s alone', (model) => {
+ expect(gptPointReleaseFamily(model)).toBeUndefined();
+ });
+});
+
+describe('gpt6Tier', () => {
+ it.each([
+ ['gpt-6-sol', 'sol'],
+ ['gpt-6.1-sol', 'sol'],
+ ['GPT-6.1-SOL-2026-10-01', 'sol'],
+ ['gpt-6-luna-2026-09-22', 'luna'],
+ ['gpt-6.2-astra', 'astra'],
+ ])('reads the tier of %s', (model, tier) => {
+ expect(gpt6Tier(model)).toBe(tier);
+ });
+
+ it.each([undefined, null, '', 'gpt-6-solar', 'gpt-60-sol', 'gpt-5.6-luna', 'openai/gpt-6-sol'])(
+ 'has no tier for %p',
+ (model) => {
+ expect(gpt6Tier(model)).toBeUndefined();
+ },
+ );
+});
diff --git a/packages/data-provider/src/families.ts b/packages/data-provider/src/families.ts
new file mode 100644
index 0000000000..2d47ab5a24
--- /dev/null
+++ b/packages/data-provider/src/families.ts
@@ -0,0 +1,26 @@
+/**
+ * A GPT point release (`gpt-6.1-sol`) that has no entry of its own inherits its
+ * family's (`gpt-6-sol`) context window, pricing and reasoning options, and on
+ * the native OpenAI endpoint its Responses routing, so a release works the day a
+ * provider ships it. An explicit entry for the release always takes precedence.
+ */
+const GPT_POINT_RELEASE = /(^|[^a-z0-9])(gpt-\d+)\.\d+(?=-)/i;
+
+/** `gpt-6.1-sol-2026-10-01` → `gpt-6-sol-2026-10-01`; undefined when `model` is not a point release. */
+export function gptPointReleaseFamily(model: string): string | undefined {
+ if (!GPT_POINT_RELEASE.test(model)) {
+ return undefined;
+ }
+ return model.replace(GPT_POINT_RELEASE, '$1$2');
+}
+
+export type Gpt6Tier = 'astra' | 'sol' | 'luna';
+
+const GPT6_TIERS: Record<string, Gpt6Tier> = { astra: 'astra', sol: 'sol', luna: 'luna' };
+const GPT6_TIER = /^gpt-6(?:\.\d+)?-(astra|sol|luna)(?=-|$)/i;
+
+/** The GPT-6 tier of `model`, including point releases and snapshots (`gpt-6.1-sol-2026-10-01` → `sol`). */
+export function gpt6Tier(model?: string | null): Gpt6Tier | undefined {
+ const tier = GPT6_TIER.exec(model ?? '')?.[1];
+ return tier == null ? undefined : GPT6_TIERS[tier.toLowerCase()];
+}
diff --git a/packages/data-provider/src/file-config.spec.ts b/packages/data-provider/src/file-config.spec.ts
index d7010b2052..211ef9688e 100644
--- a/packages/data-provider/src/file-config.spec.ts
+++ b/packages/data-provider/src/file-config.spec.ts
@@ -1,9 +1,11 @@
import type { MimeUploadCapability } from './file-config';
+import type { ResponsesApiRouting } from './types';
import type { FileConfig } from './types/files';
import {
fileConfig as baseFileConfig,
fileConfigSchema,
resolveEffectiveUseResponsesApi,
+ prefersResponsesApiByModel,
isAnthropicTextDocumentType,
getConfiguredMimeAccept,
getDocumentFileExtension,
@@ -2131,6 +2133,30 @@ describe('server-effective Responses routing', () => {
resolveEffectiveUseResponsesApi({ endpoint: EModelEndpoint.azureOpenAI, model: 'gpt-6-sol' }),
).toBeUndefined();
});
+ it('routes a native point release by its family until the server publishes its own policy', () => {
+ const optIn = { default: false, on: true, off: false };
+ const familyOnly = { 'gpt-6-sol': enabled, '*': disabled };
+ const route = (endpoint: EModelEndpoint, model: string, routing: ResponsesApiRouting) =>
+ resolveEffectiveUseResponsesApi({ endpoint, model, routing });
+ expect(prefersResponsesApiByModel('gpt-6.1-sol')).toBe(true);
+ expect(route(EModelEndpoint.openAI, 'gpt-6.1-sol', familyOnly)).toBe(true);
+ // Snapshots and Azure deployments keep their existing wildcard-only inheritance.
+ expect(route(EModelEndpoint.openAI, 'gpt-6.1-sol-2026-10-01', familyOnly)).toBe(false);
+ expect(route(EModelEndpoint.azureOpenAI, 'gpt-6.1-sol', familyOnly)).toBe(false);
+ expect(
+ route(EModelEndpoint.azureOpenAI, 'gpt-6.1-sol-2026-10-01', {
+ ...familyOnly,
+ 'gpt-6-sol-*': enabled,
+ }),
+ ).toBe(true);
+ expect(
+ resolveEffectiveUseResponsesApi({
+ endpoint: EModelEndpoint.openAI,
+ model: 'gpt-6.1-sol',
+ routing: { ...familyOnly, 'gpt-6.1-sol': optIn },
+ }),
+ ).toBe(false);
+ });
it('uses native snapshot policy but does not invent an Azure deployment', () => {
const routing = { 'gpt-6-sol': enabled, 'gpt-6-sol-*': enabled, '*': disabled };
expect(
diff --git a/packages/data-provider/src/file-config.ts b/packages/data-provider/src/file-config.ts
index a819e13bd0..1abe1bd6ab 100644
--- a/packages/data-provider/src/file-config.ts
+++ b/packages/data-provider/src/file-config.ts
@@ -2,6 +2,7 @@ import { z } from 'zod';
import type { EndpointFileConfig, FileConfig, RegexLike } from './types/files';
import type { ResponsesApiRouting } from './types';
import { EModelEndpoint, isAgentsEndpoint, isDocumentSupportedProvider } from './schemas';
+import { gpt6Tier, gptPointReleaseFamily } from './families';
import { normalizeEndpointName } from './utils';
/** Parallel storage deletions during rollback of a failed skill archive import. */
@@ -239,7 +240,7 @@ export const resolveUseResponsesApi = (
* this shared with client upload routing so documents follow the API that the
* backend will actually invoke. Explicit false remains an opt-out. */
export const prefersResponsesApiByModel = (model?: string | null): boolean =>
- typeof model === 'string' && /^gpt-6-(?:astra|sol|luna)(?:-|$)/i.test(model);
+ gpt6Tier(model) != null;
/** The server has transport and administrator settings the browser cannot see.
* Missing policy never enables model-based uploads (including during upgrades). */
@@ -260,9 +261,17 @@ export const resolveEffectiveUseResponsesApi = ({
return value ?? undefined;
}
let policy = model ? routing?.[model] : undefined;
- if (!policy && model && prefersResponsesApiByModel(model)) {
- const family = /^gpt-6-(?:astra|sol|luna)(?=-|$)/i.exec(model)?.[0].toLowerCase();
- policy = family ? routing?.[`${family}-*`] : undefined;
+ /** A native point release follows its family until the server lists it. Azure
+ * routing is keyed by configured deployments, so a family's policy there says
+ * nothing about a release that is not deployed. */
+ const releaseFamily =
+ endpoint === EModelEndpoint.openAI && model ? gptPointReleaseFamily(model) : undefined;
+ if (!policy && releaseFamily) {
+ policy = routing?.[releaseFamily];
+ }
+ const tier = gpt6Tier(model);
+ if (!policy && tier) {
+ policy = routing?.[`gpt-6-${tier}-*`];
}
policy ??= routing?.['*'];
if (!policy) return value ?? undefined;
diff --git a/packages/data-provider/src/index.ts b/packages/data-provider/src/index.ts
index e8e8e3f3d3..ea5a39f43c 100644
--- a/packages/data-provider/src/index.ts
+++ b/packages/data-provider/src/index.ts
@@ -21,6 +21,7 @@ export * from './parsers';
/* custom/dynamic configurations */
export * from './generate';
export * from './models';
+export * from './families';
/* mcp */
export * from './mcp';
/* RBAC */
diff --git a/packages/data-provider/src/parameterSettings.ts b/packages/data-provider/src/parameterSettings.ts
index a30f5109c3..8dbc93c9a2 100644
--- a/packages/data-provider/src/parameterSettings.ts
+++ b/packages/data-provider/src/parameterSettings.ts
@@ -20,6 +20,7 @@ import {
import { hasAlwaysOnThinking, hasBetweenToolsThinkingFloor, supportsPromptCache } from './bedrock';
import { SettingDefinition, SettingsConfiguration } from './generate';
import { resolveEffectiveUseResponsesApi } from './file-config';
+import { gpt6Tier } from './families';
// Base definitions
const baseDefinitions: Record<string, SettingDefinition> = {
@@ -1339,7 +1340,8 @@ export function applyModelAwareDefaults(
: setting,
);
}
- if (/^gpt-6-(?:sol|luna)(?:$|-)/i.test(model)) {
+ const tier = gpt6Tier(model);
+ if (tier === 'sol' || tier === 'luna') {
return settings.map((setting) => {
if (setting.key === 'reasoning_effort') {
return {
diff --git a/packages/data-schemas/src/methods/test-helpers.ts b/packages/data-schemas/src/methods/test-helpers.ts
index ebf507c2cb..6270f4e7b8 100644
--- a/packages/data-schemas/src/methods/test-helpers.ts
+++ b/packages/data-schemas/src/methods/test-helpers.ts
@@ -1,3 +1,5 @@
+import { gptPointReleaseFamily } from 'librechat-data-provider';
+
/**
* Inlined utility functions previously imported from @librechat/api.
* These are used only by test files in data-schemas.
@@ -36,6 +38,18 @@ function findLongestKey(
export function findMatchingPattern(
modelName: string,
tokensMap: Record<string, number | Record<string, number>>,
+): string | undefined {
+ const direct = findVendorAwarePattern(modelName, tokensMap);
+ if (direct != null) {
+ return direct;
+ }
+ const family = gptPointReleaseFamily(modelName);
+ return family == null ? undefined : findVendorAwarePattern(family, tokensMap);
+}
+
+function findVendorAwarePattern(
+ modelName: string,
+ tokensMap: Record<string, number | Record<string, number>>,
): string | undefined {
const lowerModelName = modelName.toLowerCase();
const slashIndex = lowerModelName.lastIndexOf('/');
diff --git a/packages/data-schemas/src/methods/tx.spec.ts b/packages/data-schemas/src/methods/tx.spec.ts
index 7afb7abdc3..3198ffb633 100644
--- a/packages/data-schemas/src/methods/tx.spec.ts
+++ b/packages/data-schemas/src/methods/tx.spec.ts
@@ -503,6 +503,16 @@ describe('getMultiplier', () => {
expect(premiumCache.read).toBeCloseTo(standardCache.read * 2);
});
+ it('should price a GPT point release at its family rate until it has its own entry', () => {
+ for (const model of ['gpt-6.1-sol', 'gpt-6.1-sol-2026-10-01', 'openai/gpt-6.1-sol']) {
+ expect(getValueKey(model)).toBe('gpt-6-sol');
+ expect(getMultiplier({ model, tokenType: 'prompt' })).toBe(tokenValues['gpt-6-sol'].prompt);
+ expect(getMultiplier({ model, tokenType: 'completion' })).toBe(
+ tokenValues['gpt-6-sol'].completion,
+ );
+ }
+ });
+
it('should resolve gpt-6-astra to its own key rather than a gpt-6 prefix', () => {
for (const model of [
'gpt-6-astra',