diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 9d0b72626..4d59bd667 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -178,7 +178,6 @@ function isProviderHandlesTemplatingOrNoTemplateTypeRequired( const MODEL_SUPPORTS_NEXT_EDIT: string[] = [ "mercury-coder-nextedit", "model-1", - "this field is not used", ]; function modelSupportsNextEdit( diff --git a/core/nextEdit/templating/NextEditPromptEngine.ts b/core/nextEdit/templating/NextEditPromptEngine.ts index 59cea94f5..bfab03a73 100644 --- a/core/nextEdit/templating/NextEditPromptEngine.ts +++ b/core/nextEdit/templating/NextEditPromptEngine.ts @@ -34,10 +34,7 @@ import { type TemplateRenderer = (vars: TemplateVars) => string; // NOTE: When updating this union, update core/llm/autodetect.ts as well. -export type NextEditModelName = - | "mercury-coder-nextedit" - | "model-1" - | "this field is not used"; +export type NextEditModelName = "mercury-coder-nextedit" | "model-1"; const NEXT_EDIT_MODEL_TEMPLATES: Record = { "mercury-coder-nextedit": { @@ -47,9 +44,6 @@ const NEXT_EDIT_MODEL_TEMPLATES: Record = { template: "### User Edits:\n\n{{{userEdits}}}\n\n### User Excerpts:\n\n```{{{languageShorthand}}}\n{{{userExcerpts}}}```", }, - "this field is not used": { - template: "NEXT_EDIT", - }, }; function templateRendererOfModel( @@ -73,17 +67,6 @@ export async function renderPrompt( ): Promise { let modelName = helper.modelName as NextEditModelName; - if (modelName === "this field is not used") { - return { - prompt: { - role: "user", - content: "NEXT_EDIT", - }, - userEdits: "", - userExcerpts: helper.fileContents, - }; - } - // Validate that the modelName is actually a supported model. if (!Object.keys(NEXT_EDIT_MODEL_TEMPLATES).includes(modelName)) { // Check if modelName includes any known model name as substring.