MCPcopy
hub / github.com/codeaashu/claude-code / resolveOverriddenModel

Function resolveOverriddenModel

src/utils/model/modelStrings.ts:84–100  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

82 * aren't loaded yet).
83 */
84export function resolveOverriddenModel(modelId: string): string {
85 let overrides: Record<string, string> | undefined
86 try {
87 overrides = getInitialSettings().modelOverrides
88 } catch {
89 return modelId
90 }
91 if (!overrides) {
92 return modelId
93 }
94 for (const [canonicalId, override] of Object.entries(overrides)) {
95 if (override === modelId) {
96 return canonicalId
97 }
98 }
99 return modelId
100}
101
102const updateBedrockModelStrings = sequential(async () => {
103 if (getModelStringsState() !== null) {

Callers 2

isModelAllowedFunction · 0.85
getCanonicalNameFunction · 0.85

Calls 2

getInitialSettingsFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected