Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ ERODE_GITHUB_TOKEN=
# Model overrides — FAST for extraction stages (1, 2), ADVANCED for analysis stages (3, 4)
# ERODE_GEMINI_FAST_MODEL=gemini-2.5-flash # Default
# ERODE_GEMINI_ADVANCED_MODEL=gemini-2.5-pro # Default
# ERODE_ANTHROPIC_FAST_MODEL=claude-haiku-4-5-20251001
# ERODE_ANTHROPIC_ADVANCED_MODEL=claude-sonnet-4-5-20250929
# ERODE_ANTHROPIC_FAST_MODEL=claude-haiku-4-5
# ERODE_ANTHROPIC_ADVANCED_MODEL=claude-sonnet-4-6

# Architecture model format
# ERODE_MODEL_FORMAT=likec4
Expand Down
8 changes: 4 additions & 4 deletions packages/core/schemas/eroderc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@
"maximum": 300000
},
"fastModel": {
"default": "claude-haiku-4-5-20251001",
"default": "claude-haiku-4-5",
"type": "string"
},
"advancedModel": {
"default": "claude-sonnet-4-5-20250929",
"default": "claude-sonnet-4-6",
"type": "string"
Comment thread
parse marked this conversation as resolved.
}
},
Expand Down Expand Up @@ -210,11 +210,11 @@
"maximum": 300000
},
"fastModel": {
"default": "gpt-4.1-mini",
"default": "gpt-5.3-mini",
"type": "string"
},
"advancedModel": {
"default": "gpt-4.1",
"default": "gpt-5.3",
"type": "string"
}
},
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/providers/__tests__/provider-factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const {
},
openai: {
apiKey: 'test-openai-key',
fastModel: 'gpt-4.1-mini',
advancedModel: 'gpt-4.1',
fastModel: 'gpt-5.3-mini',
advancedModel: 'gpt-5.3',
},
anthropic: {
apiKey: 'test-anthropic-key',
Expand Down Expand Up @@ -94,8 +94,8 @@ describe('createAIProvider', () => {
mockConfig.gemini.fastModel = 'gemini-flash';
mockConfig.gemini.advancedModel = 'gemini-pro';
mockConfig.openai.apiKey = 'test-openai-key';
mockConfig.openai.fastModel = 'gpt-4.1-mini';
mockConfig.openai.advancedModel = 'gpt-4.1';
mockConfig.openai.fastModel = 'gpt-5.3-mini';
mockConfig.openai.advancedModel = 'gpt-5.3';
mockConfig.anthropic.apiKey = 'test-anthropic-key';
mockConfig.anthropic.fastModel = 'claude-haiku';
mockConfig.anthropic.advancedModel = 'claude-sonnet';
Expand All @@ -122,8 +122,8 @@ describe('createAIProvider', () => {
expect(result).toBe(mockOpenAIInstance);
expect(OpenAIProvider).toHaveBeenCalledWith({
apiKey: 'test-openai-key',
fastModel: 'gpt-4.1-mini',
advancedModel: 'gpt-4.1',
fastModel: 'gpt-5.3-mini',
advancedModel: 'gpt-5.3',
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe('AnthropicProvider', () => {

expect(mockCreate).toHaveBeenCalled();
const callArg = mockCreate.mock.calls[0]?.[0] as { model?: string } | undefined;
expect(callArg?.model).toBe('claude-haiku-4-5-20251001');
expect(callArg?.model).toBe('claude-haiku-4-5');
});

it('should return patched content', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/providers/anthropic/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ANTHROPIC_MODELS = {
FAST: 'claude-haiku-4-5-20251001',
ADVANCED: 'claude-sonnet-4-5-20250929',
FAST: 'claude-haiku-4-5',
ADVANCED: 'claude-sonnet-4-6',
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe('OpenAIProvider', () => {

expect(mockCreate).toHaveBeenCalled();
const callArg = mockCreate.mock.calls[0]?.[0] as { model?: string } | undefined;
expect(callArg?.model).toBe('gpt-4.1-mini');
expect(callArg?.model).toBe('gpt-5.3-mini');
});

it('should return patched content', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/providers/openai/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const OPENAI_MODELS = {
FAST: 'gpt-4.1-mini',
ADVANCED: 'gpt-4.1',
FAST: 'gpt-5.3-mini',
ADVANCED: 'gpt-5.3',
} as const;
8 changes: 4 additions & 4 deletions packages/web/public/schemas/v0/eroderc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@
"maximum": 300000
},
"fastModel": {
"default": "claude-haiku-4-5-20251001",
"default": "claude-haiku-4-5",
"type": "string"
},
"advancedModel": {
"default": "claude-sonnet-4-5-20250929",
"default": "claude-sonnet-4-6",
"type": "string"
}
},
Expand Down Expand Up @@ -210,11 +210,11 @@
"maximum": 300000
},
"fastModel": {
"default": "gpt-4.1-mini",
"default": "gpt-5.3-mini",
"type": "string"
},
"advancedModel": {
"default": "gpt-4.1",
"default": "gpt-5.3",
"type": "string"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
},
Expand Down
12 changes: 6 additions & 6 deletions packages/web/src/content/docs/docs/reference/ai-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ Each provider uses two model tiers to balance cost and quality:

| Tier | Default model |
| -------- | -------------- |
| Fast | `gpt-4.1-mini` |
| Advanced | `gpt-4.1` |
| Fast | `gpt-5.3-mini` |
| Advanced | `gpt-5.3` |

### Anthropic (experimental)

| Tier | Default model |
| -------- | ---------------------------- |
| Fast | `claude-haiku-4-5-20251001` |
| Advanced | `claude-sonnet-4-5-20250929` |
| Tier | Default model |
| -------- | ------------------- |
| Fast | `claude-haiku-4-5` |
| Advanced | `claude-sonnet-4-6` |

:::caution
Anthropic support is experimental and may not produce consistent results across all codebases. Use Gemini or OpenAI for production workflows.
Expand Down
Loading