Merge pull request #2237 from iyoda/refactor/model-resolution-dedup

refactor(shared): deduplicate model resolution utility functions
This commit is contained in:
YeonGyu-Kim
2026-03-02 23:27:49 +09:00
committed by GitHub
11 changed files with 140 additions and 120 deletions
+1 -4
View File
@@ -1,11 +1,8 @@
import type { FallbackEntry } from "../../shared/model-requirements"
import { normalizeModel } from "../../shared/model-normalization"
import { fuzzyMatchModel } from "../../shared/model-availability"
import { transformModelForProvider } from "../../shared/provider-model-id-transform"
function normalizeModel(model?: string): string | undefined {
const trimmed = model?.trim()
return trimmed || undefined
}
export function resolveModelForDelegateTask(input: {
userModel?: string