fix: remove test model for now

This commit is contained in:
Jacob Kim 2025-08-06 16:20:43 -07:00
parent b3da8c7c70
commit 793c835f23
2 changed files with 1 additions and 19 deletions

View file

@ -178,7 +178,6 @@ function isProviderHandlesTemplatingOrNoTemplateTypeRequired(
const MODEL_SUPPORTS_NEXT_EDIT: string[] = [
"mercury-coder-nextedit",
"model-1",
"this field is not used",
];
function modelSupportsNextEdit(

View file

@ -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<NextEditModelName, NextEditTemplate> = {
"mercury-coder-nextedit": {
@ -47,9 +44,6 @@ const NEXT_EDIT_MODEL_TEMPLATES: Record<NextEditModelName, NextEditTemplate> = {
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<PromptMetadata> {
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.