feat(staging): Use default behavior to determine location and endpoint.
What does this merge request do and why?
feat(staging): Use default behavior to determine location and endpoint.
!698 (merged) introduced default behavior to determine the location and endpoint from an environment variable. Since explicit values for both were still provided via the environment, this behavior has not taken effect.
This removes explicit configuration of both "location" and "endpoint", using
the location specific logic instead. This will allow AI Gateway instances
running in europe-west2
and asia-northeast3
to talk to a local backend,
reducing the user-observed latency.
Issue: gitlab-com/gl-infra/production#17704 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.