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

Function getVertexRegionForModel

source code/utils/envUtils.ts:173–185  ·  view source on GitHub ↗
(
  model: string | undefined,
)

Source from the content-addressed store, hash-verified

171 * Different models may be available in different regions.
172 */
173export function getVertexRegionForModel(
174 model: string | undefined,
175): string | undefined {
176 if (model) {
177 const match = VERTEX_REGION_OVERRIDES.find(([prefix]) =>
178 model.startsWith(prefix),
179 )
180 if (match) {
181 return process.env[match[1]] || getDefaultVertexRegion()
182 }
183 }
184 return getDefaultVertexRegion()
185}

Callers 2

getAnthropicClientFunction · 0.85

Calls 1

getDefaultVertexRegionFunction · 0.85

Tested by

no test coverage detected