MCPcopy Index your code
hub / github.com/codeaashu/claude-code / ensureModelStringsInitialized

Function ensureModelStringsInitialized

src/utils/model/modelStrings.ts:152–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 * Call this before generating model options to ensure correct region strings.
151 */
152export async function ensureModelStringsInitialized(): Promise<void> {
153 const ms = getModelStringsState()
154 if (ms !== null) {
155 return
156 }
157
158 // For non-Bedrock, initialize synchronously
159 if (getAPIProvider() !== 'bedrock') {
160 setModelStringsState(getBuiltinModelStrings(getAPIProvider()))
161 return
162 }
163
164 // For Bedrock, wait for the profile fetch
165 await updateBedrockModelStrings()
166}
167

Callers 2

runFunction · 0.85
runHeadlessFunction · 0.85

Calls 2

getAPIProviderFunction · 0.85
getBuiltinModelStringsFunction · 0.85

Tested by

no test coverage detected