diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index 1f2b5c02614..3dcb3ad5c55 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -54,10 +54,6 @@ function claudeSonnetLazyApplyPrompt( export function lazyApplyPromptForModel( model: string, provider: string, -): LazyApplyPrompt | undefined { - if (model.includes("sonnet")) { - return claudeSonnetLazyApplyPrompt; - } - - return undefined; +): LazyApplyPrompt { + return claudeSonnetLazyApplyPrompt; } diff --git a/core/edit/lazy/streamLazyApply.ts b/core/edit/lazy/streamLazyApply.ts index f806e956f4c..11f2a115056 100644 --- a/core/edit/lazy/streamLazyApply.ts +++ b/core/edit/lazy/streamLazyApply.ts @@ -19,10 +19,6 @@ export async function* streamLazyApply( abortController: AbortController, ): AsyncGenerator { const promptFactory = lazyApplyPromptForModel(llm.model, llm.providerName); - if (!promptFactory) { - throw new Error(`Lazy apply not supported for model ${llm.model}`); - } - const promptMessages = promptFactory(oldCode, filename, newCode); const lazyCompletion = llm.streamChat(promptMessages, abortController.signal);