refactor(shared): deduplicate model resolution utility functions

Extract normalizeModel() (3 identical copies) and normalizeModelID()
(2 identical copies) into canonical src/shared/model-normalization.ts.
Delete dead-end duplicate model-name-matcher.ts. Update all consumers.
This commit is contained in:
IYODA Atsushi
2026-03-02 16:38:22 +09:00
parent a666612354
commit 4b366926d4
11 changed files with 140 additions and 120 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { readConnectedProvidersCache } from "./connected-providers-cache"
import { log } from "./logger"
import { fuzzyMatchModel } from "./model-name-matcher"
import { fuzzyMatchModel } from "./model-availability"
type FallbackEntry = { providers: string[]; model: string }