mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
We currently have two possible sources of truth for the Bedrock region: * `cfg.Region`, when explicitly provided (this also covers the case where the UI parses the base URL and populates `cfg.Region`) * the region resolved from the AWS environment An explicitly configured region should always take precedence over the environment-derived region. I suggest implementing this resolution policy in the `NewAnthropic` constructor so that, after initialization, there is a single source of truth for the resolved region.