MCPcopy
hub / github.com/coder/mux / normalizeModelForCommand

Function normalizeModelForCommand

src/node/acp/slashCommands.ts:312–316  ·  view source on GitHub ↗
(modelInput: string)

Source from the content-addressed store, hash-verified

310}
311
312function normalizeModelForCommand(modelInput: string): string | null {
313 // Share the single model-input parser (alias resolution + gateway preservation +
314 // format validation) used by the UI and the task tool instead of duplicating it.
315 return normalizeModelInput(modelInput).model;
316}
317
318function parseMultilineCommand(rawInput: string): ParsedMultilineCommand {
319 const hasMultiline = rawInput.includes("\n");

Callers 1

parseCompactCommandFunction · 0.85

Calls 1

normalizeModelInputFunction · 0.90

Tested by

no test coverage detected