mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
fix: resolve model aliases in backlog plan explicit override (#654)
When a user explicitly passes a model override (e.g., model: "sonnet"), the code was only fetching credentials without resolving the model alias. This caused API calls to fail because the Claude API expects full model strings like "claude-sonnet-4-20250514", not aliases like "sonnet". The other code branches (settings-based and fallback) correctly called resolvePhaseModel(), but the explicit override branch was missing this. This fix adds the resolvePhaseModel() call to ensure model aliases are properly resolved before being sent to the API.
This commit is contained in:
committed by
GitHub
parent
41b127ebf3
commit
0155da0be5
@@ -128,7 +128,10 @@ export async function generateBacklogPlan(
|
||||
let credentials: import('@automaker/types').Credentials | undefined;
|
||||
|
||||
if (effectiveModel) {
|
||||
// Use explicit override - just get credentials
|
||||
// Use explicit override - resolve model alias and get credentials
|
||||
const resolved = resolvePhaseModel({ model: effectiveModel });
|
||||
effectiveModel = resolved.model;
|
||||
thinkingLevel = resolved.thinkingLevel;
|
||||
credentials = await settingsService?.getCredentials();
|
||||
} else if (settingsService) {
|
||||
// Use settings-based model with provider info
|
||||
|
||||
Reference in New Issue
Block a user