diff --git a/.claude/skills/nexus-model-updates/refinement-log.md b/.claude/skills/nexus-model-updates/refinement-log.md index 8554ebd0a..30d2b68e6 100644 --- a/.claude/skills/nexus-model-updates/refinement-log.md +++ b/.claude/skills/nexus-model-updates/refinement-log.md @@ -155,3 +155,5 @@ Append-only record of changes made by `protocols/self-refine.md`. Newest on top. - 2026-11-18: Speech model catalogs are outside the chat registry checker. Clarified the unscoped structural gate and dedicated speech/session proof in protocols/verify-model.md; no chat registry should be fabricated for transcription. - 2026-11-18: Added registry-anatomy guidance for googleGeneration so new models declare supported thinking levels and separate buffered/streaming foreground limits. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.claude/skills/nexus-testing/refinement-log.md b/.claude/skills/nexus-testing/refinement-log.md index c6a1eccfe..2c191a9dc 100644 --- a/.claude/skills/nexus-testing/refinement-log.md +++ b/.claude/skills/nexus-testing/refinement-log.md @@ -284,3 +284,5 @@ Verified the installed 5.21.3 candidate in Nexus Redesign Test with matching art - 2026-11-18: AssemblyAI catalog and request regression checks passed; deliberately flipping the clean-transcript flag was detected in both plugins. No testing procedure change needed. - 2026-11-18: Extended parameterized provider-request assertions and cost-calculator threshold checks for a model release; no testing procedure change needed. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.cline/skills/nexus-model-updates/refinement-log.md b/.cline/skills/nexus-model-updates/refinement-log.md index 8554ebd0a..30d2b68e6 100644 --- a/.cline/skills/nexus-model-updates/refinement-log.md +++ b/.cline/skills/nexus-model-updates/refinement-log.md @@ -155,3 +155,5 @@ Append-only record of changes made by `protocols/self-refine.md`. Newest on top. - 2026-11-18: Speech model catalogs are outside the chat registry checker. Clarified the unscoped structural gate and dedicated speech/session proof in protocols/verify-model.md; no chat registry should be fabricated for transcription. - 2026-11-18: Added registry-anatomy guidance for googleGeneration so new models declare supported thinking levels and separate buffered/streaming foreground limits. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.cline/skills/nexus-testing/refinement-log.md b/.cline/skills/nexus-testing/refinement-log.md index c6a1eccfe..2c191a9dc 100644 --- a/.cline/skills/nexus-testing/refinement-log.md +++ b/.cline/skills/nexus-testing/refinement-log.md @@ -284,3 +284,5 @@ Verified the installed 5.21.3 candidate in Nexus Redesign Test with matching art - 2026-11-18: AssemblyAI catalog and request regression checks passed; deliberately flipping the clean-transcript flag was detected in both plugins. No testing procedure change needed. - 2026-11-18: Extended parameterized provider-request assertions and cost-calculator threshold checks for a model release; no testing procedure change needed. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.codex/skills/nexus-model-updates/refinement-log.md b/.codex/skills/nexus-model-updates/refinement-log.md index 8554ebd0a..30d2b68e6 100644 --- a/.codex/skills/nexus-model-updates/refinement-log.md +++ b/.codex/skills/nexus-model-updates/refinement-log.md @@ -155,3 +155,5 @@ Append-only record of changes made by `protocols/self-refine.md`. Newest on top. - 2026-11-18: Speech model catalogs are outside the chat registry checker. Clarified the unscoped structural gate and dedicated speech/session proof in protocols/verify-model.md; no chat registry should be fabricated for transcription. - 2026-11-18: Added registry-anatomy guidance for googleGeneration so new models declare supported thinking levels and separate buffered/streaming foreground limits. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.codex/skills/nexus-testing/refinement-log.md b/.codex/skills/nexus-testing/refinement-log.md index c6a1eccfe..2c191a9dc 100644 --- a/.codex/skills/nexus-testing/refinement-log.md +++ b/.codex/skills/nexus-testing/refinement-log.md @@ -284,3 +284,5 @@ Verified the installed 5.21.3 candidate in Nexus Redesign Test with matching art - 2026-11-18: AssemblyAI catalog and request regression checks passed; deliberately flipping the clean-transcript flag was detected in both plugins. No testing procedure change needed. - 2026-11-18: Extended parameterized provider-request assertions and cost-calculator threshold checks for a model release; no testing procedure change needed. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.skills/nexus-model-updates/refinement-log.md b/.skills/nexus-model-updates/refinement-log.md index 8554ebd0a..30d2b68e6 100644 --- a/.skills/nexus-model-updates/refinement-log.md +++ b/.skills/nexus-model-updates/refinement-log.md @@ -155,3 +155,5 @@ Append-only record of changes made by `protocols/self-refine.md`. Newest on top. - 2026-11-18: Speech model catalogs are outside the chat registry checker. Clarified the unscoped structural gate and dedicated speech/session proof in protocols/verify-model.md; no chat registry should be fabricated for transcription. - 2026-11-18: Added registry-anatomy guidance for googleGeneration so new models declare supported thinking levels and separate buffered/streaming foreground limits. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/.skills/nexus-testing/refinement-log.md b/.skills/nexus-testing/refinement-log.md index c6a1eccfe..2c191a9dc 100644 --- a/.skills/nexus-testing/refinement-log.md +++ b/.skills/nexus-testing/refinement-log.md @@ -284,3 +284,5 @@ Verified the installed 5.21.3 candidate in Nexus Redesign Test with matching art - 2026-11-18: AssemblyAI catalog and request regression checks passed; deliberately flipping the clean-transcript flag was detected in both plugins. No testing procedure change needed. - 2026-11-18: Extended parameterized provider-request assertions and cost-calculator threshold checks for a model release; no testing procedure change needed. + +- 2026-11-19: Added a provider-listed model using the existing generation declaration and request-contract tests; no skill procedure change needed. diff --git a/docs/changelog.md b/docs/changelog.md index 9b1ee1d33..556089b98 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,8 @@ ## Unreleased +- Add Gemini 4 Neon through Google, OpenRouter and Requesty, with extra-high thinking and provider-specific output limits. Existing defaults remain unchanged. + - Add GPT-6.2 Sol and Astra to OpenAI, ChatGPT (Codex), OpenRouter and Requesty, and Gemini 4 Hydrogen to Google, OpenRouter and Requesty. Provider defaults remain unchanged. Hydrogen uses thinking levels, including extra high, and its 65,536-token foreground output limit. - Add AssemblyAI STT 3.7 for recorded audio and STT 3.7 Realtime / Realtime Agent for live voice. AssemblyAI now auto-selects STT 3.7 for transcription and Realtime Agent for voice chat; saved model choices remain available. Recorded STT 3.7 transcripts omit fillers to preserve the previous behavior. diff --git a/src/services/llm/adapters/google/GoogleModels.ts b/src/services/llm/adapters/google/GoogleModels.ts index 1cb712eda..0798447a6 100644 --- a/src/services/llm/adapters/google/GoogleModels.ts +++ b/src/services/llm/adapters/google/GoogleModels.ts @@ -20,6 +20,27 @@ import { ModelSpec } from '../modelTypes'; export const GOOGLE_ARGON_MODEL = 'gemini-4-argon'; export const GOOGLE_MODELS: ModelSpec[] = [ + // https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-4-neon (verified 2026-11-19). + { + provider: 'google', + name: 'Gemini 4 Neon', + apiName: 'gemini-4-neon', + releaseDate: '2026-11-18', + contextWindow: 1048576, + maxTokens: 65536, + inputCostPerMillion: 3, + outputCostPerMillion: 15, + cacheReadCostPerMillion: 0.15, + supportsSamplingParams: false, + googleGeneration: { thinkingLevels: ['low', 'medium', 'high', 'xhigh'], maxStreamingTokens: 65536 }, + capabilities: { + supportsJSON: true, + supportsImages: true, + supportsFunctions: true, + supportsStreaming: true, + supportsThinking: true + } + }, // https://aistudio.google.com/docs/models/gemini-4-hydrogen; authenticated models.get limits (verified 2026-11-18). { provider: 'google', diff --git a/src/services/llm/adapters/openrouter/OpenRouterModels.ts b/src/services/llm/adapters/openrouter/OpenRouterModels.ts index 92a246fb9..000fdf151 100644 --- a/src/services/llm/adapters/openrouter/OpenRouterModels.ts +++ b/src/services/llm/adapters/openrouter/OpenRouterModels.ts @@ -11,6 +11,25 @@ import { ModelSpec } from '../modelTypes'; // OpenRouter provides access to models from other providers. // Keep this list alphabetized by display name for consistent dropdown ordering. export const OPENROUTER_MODELS: ModelSpec[] = [ + // https://openrouter.ai/api/v1/models (verified 2026-11-19). + { + provider: 'openrouter', + name: 'Gemini 4 Neon', + apiName: 'google/gemini-4-neon', + releaseDate: '2026-11-18', + contextWindow: 1048576, + maxTokens: 943718, + inputCostPerMillion: 3, + outputCostPerMillion: 15, + cacheReadCostPerMillion: 0.15, + capabilities: { + supportsJSON: true, + supportsImages: true, + supportsFunctions: true, + supportsStreaming: true, + supportsThinking: true + } + }, // https://openrouter.ai/api/v1/models (verified 2026-11-18). { provider: 'openrouter', diff --git a/src/services/llm/adapters/requesty/RequestyModels.ts b/src/services/llm/adapters/requesty/RequestyModels.ts index f12a17789..ab089d645 100644 --- a/src/services/llm/adapters/requesty/RequestyModels.ts +++ b/src/services/llm/adapters/requesty/RequestyModels.ts @@ -20,6 +20,26 @@ import { ModelSpec } from '../modelTypes'; // Requesty provides access to models from other providers // Each model has its own specific API name in Requesty export const REQUESTY_MODELS: ModelSpec[] = [ + // https://router.requesty.ai/v1/models (verified 2026-11-19). + { + provider: 'requesty', + name: 'Gemini 4 Neon', + apiName: 'vertex/gemini-4-neon', + releaseDate: '2026-11-18', + contextWindow: 1048576, + maxTokens: 65536, + inputCostPerMillion: 3, + outputCostPerMillion: 15, + cacheReadCostPerMillion: 0.15, + cacheWriteCostPerMillion: 3, + capabilities: { + supportsJSON: true, + supportsImages: true, + supportsFunctions: true, + supportsStreaming: true, + supportsThinking: true + } + }, // https://router.requesty.ai/v1/models (verified 2026-11-18). { provider: 'requesty', diff --git a/tests/unit/GoogleAdapter.test.ts b/tests/unit/GoogleAdapter.test.ts index fe4360651..06ed77eeb 100644 --- a/tests/unit/GoogleAdapter.test.ts +++ b/tests/unit/GoogleAdapter.test.ts @@ -521,7 +521,7 @@ describe('GoogleAdapter', () => { // These tests inspect real adapter requests; the HTTP fixture only supplies // responses. They fail if Argon regresses to Gemini 2 budget/sampling rules, // loses explicit small output caps, or reports long decode as a full answer. - describe.each(['gemini-4-argon', 'gemini-4-carbon', 'gemini-4-hydrogen'])('%s standard generation', model => { + describe.each(['gemini-4-argon', 'gemini-4-carbon', 'gemini-4-hydrogen', 'gemini-4-neon'])('%s standard generation', model => { const completed = { candidates: [{ content: { parts: [{ text: 'Done' }] }, finishReason: 'STOP' }] }; it.each([false, true])('uses thinking levels without sampling parameters (stream=%s)', async stream => { @@ -538,7 +538,7 @@ describe('GoogleAdapter', () => { const config = JSON.parse(requests.at(-1)?.body ?? '{}').generationConfig; expect(config).toEqual({ maxOutputTokens: 128, - thinkingConfig: { includeThoughts: true, thinkingLevel: effort === 'max' || effort === 'xhigh' ? (model === 'gemini-4-hydrogen' ? 'xhigh' : 'high') : effort } + thinkingConfig: { includeThoughts: true, thinkingLevel: effort === 'max' || effort === 'xhigh' ? ((model === 'gemini-4-hydrogen' || model === 'gemini-4-neon') ? 'xhigh' : 'high') : effort } }); } }); @@ -567,7 +567,7 @@ describe('GoogleAdapter', () => { else await adapter.generateUncached('hi', { maxTokens }); } expect(requests.map(request => JSON.parse(request.body ?? '{}').generationConfig.maxOutputTokens)) - .toEqual(model === 'gemini-4-hydrogen' + .toEqual((model === 'gemini-4-hydrogen' || model === 'gemini-4-neon') ? [65536, 128, 32768, 60000, 65536] : [32768, 128, 32768, stream ? 60000 : 32768, stream ? 65536 : 32768]); }); @@ -634,14 +634,14 @@ describe('GoogleAdapter', () => { it('lists the verified standard model without changing the provider default', async () => { const adapter = new GoogleAdapter('gk-test'); expect(await adapter.listModels()).toContainEqual(expect.objectContaining({ - id: model, name: model === 'gemini-4-hydrogen' ? 'Gemini 4 Hydrogen' : model === 'gemini-4-carbon' ? 'Gemini 4 Carbon' : 'Gemini 4 Argon', - contextWindow: 1048576, maxOutputTokens: model === 'gemini-4-hydrogen' ? 65536 : 32768, + id: model, name: model === 'gemini-4-neon' ? 'Gemini 4 Neon' : model === 'gemini-4-hydrogen' ? 'Gemini 4 Hydrogen' : model === 'gemini-4-carbon' ? 'Gemini 4 Carbon' : 'Gemini 4 Argon', + contextWindow: 1048576, maxOutputTokens: (model === 'gemini-4-hydrogen' || model === 'gemini-4-neon') ? 65536 : 32768, supportsThinking: true, supportsFunctions: true, supportsStreaming: true })); expect(await adapter.getModelPricing(model)).toMatchObject({ - rateInputPerMillion: model === 'gemini-4-hydrogen' ? 1.5 : 2, - rateOutputPerMillion: model === 'gemini-4-hydrogen' ? 7.5 : 10, - rateCacheReadPerMillion: model === 'gemini-4-hydrogen' ? 0.075 : 0.1 + rateInputPerMillion: model === 'gemini-4-neon' ? 3 : model === 'gemini-4-hydrogen' ? 1.5 : 2, + rateOutputPerMillion: model === 'gemini-4-neon' ? 15 : model === 'gemini-4-hydrogen' ? 7.5 : 10, + rateCacheReadPerMillion: model === 'gemini-4-neon' ? 0.15 : model === 'gemini-4-hydrogen' ? 0.075 : 0.1 }); expect(GOOGLE_DEFAULT_MODEL).toBe('gemini-3.1-pro-preview'); }); diff --git a/tests/unit/ModelReleaseDates.test.ts b/tests/unit/ModelReleaseDates.test.ts index ae5a14a8b..8dfb2980b 100644 --- a/tests/unit/ModelReleaseDates.test.ts +++ b/tests/unit/ModelReleaseDates.test.ts @@ -15,6 +15,9 @@ describe('published model release dates', () => { ['openrouter', 'openai/gpt-6.2-astra', '2026-11-17'], ['requesty', 'openai/gpt-6.2-sol', '2026-11-17'], ['requesty', 'openai/gpt-6.2-astra', '2026-11-17'], + ['google', 'gemini-4-neon', '2026-11-18'], + ['openrouter', 'google/gemini-4-neon', '2026-11-18'], + ['requesty', 'vertex/gemini-4-neon', '2026-11-18'], ['google', 'gemini-4-hydrogen', '2026-11-12'], ['openrouter', 'google/gemini-4-hydrogen', '2026-11-12'], ['requesty', 'vertex/gemini-4-hydrogen', '2026-11-12'],