MCPcopy
hub / github.com/openai/openai-python / _configured_region

Function _configured_region

src/openai/lib/bedrock.py:69–71  ·  view source on GitHub ↗
(region: str | None)

Source from the content-addressed store, hash-verified

67
68
69def _configured_region(region: str | None) -> str | None:
70 configured = region or os.environ.get("AWS_REGION") or os.environ.get("AWS_DEFAULT_REGION")
71 return configured.strip() if configured is not None and configured.strip() else None
72
73
74def _uses_region_derived_base_url(base_url: str | httpx.URL | None) -> bool:

Callers 1

_legacy_providerFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected