MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / initModelStrings

Function initModelStrings

source code/utils/model/modelStrings.ts:120–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118})
119
120function initModelStrings(): void {
121 const ms = getModelStringsState()
122 if (ms !== null) {
123 // Already initialized
124 return
125 }
126 // Initial with default values for non-Bedrock providers
127 if (getAPIProvider() !== 'bedrock') {
128 setModelStringsState(getBuiltinModelStrings(getAPIProvider()))
129 return
130 }
131 // On Bedrock, update model strings in the background without blocking.
132 // Don't set the state in this case so that we can use `sequential` on
133 // `updateBedrockModelStrings` and check for existing state on multiple
134 // calls.
135 void updateBedrockModelStrings()
136}
137
138export function getModelStrings(): ModelStrings {
139 const ms = getModelStringsState()

Callers 1

getModelStringsFunction · 0.85

Calls 2

getAPIProviderFunction · 0.85
getBuiltinModelStringsFunction · 0.85

Tested by

no test coverage detected