Skip to content
Open
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
8 changes: 2 additions & 6 deletions core/edit/lazy/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 0 additions & 4 deletions core/edit/lazy/streamLazyApply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export async function* streamLazyApply(
abortController: AbortController,
): AsyncGenerator<DiffLine> {
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);

Expand Down
Loading