MCPcopy
hub / github.com/claude-code-best/claude-code / getVertexRegionForModel

Function getVertexRegionForModel

src/utils/envUtils.ts:171–183  ·  view source on GitHub ↗
(
  model: string | undefined,
)

Source from the content-addressed store, hash-verified

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

Callers 3

envUtils.test.tsFile · 0.90
getAnthropicClientFunction · 0.85

Calls 1

getDefaultVertexRegionFunction · 0.85

Tested by

no test coverage detected