Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .claude/skills/nexus-model-updates/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .claude/skills/nexus-testing/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .cline/skills/nexus-model-updates/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .cline/skills/nexus-testing/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .codex/skills/nexus-model-updates/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .codex/skills/nexus-testing/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .skills/nexus-model-updates/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions .skills/nexus-testing/refinement-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions src/services/llm/adapters/google/GoogleModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
19 changes: 19 additions & 0 deletions src/services/llm/adapters/openrouter/OpenRouterModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
20 changes: 20 additions & 0 deletions src/services/llm/adapters/requesty/RequestyModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
16 changes: 8 additions & 8 deletions tests/unit/GoogleAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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 }
});
}
});
Expand Down Expand Up @@ -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]);
});
Expand Down Expand Up @@ -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');
});
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/ModelReleaseDates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
Loading