Skip to content

feat: add BL_MODEL_GATEWAY_URL env var to override mk3 gateway endpoint#328

Open
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/add-model-gateway-url-override
Open

feat: add BL_MODEL_GATEWAY_URL env var to override mk3 gateway endpoint#328
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/add-model-gateway-url-override

Conversation

@mendral-app
Copy link
Copy Markdown
Contributor

@mendral-app mendral-app Bot commented Jun 3, 2026

Important

Manual Steps Required Before Merging

  • Set BL_MODEL_GATEWAY_URL repository secret/variable to a working model gateway URL (e.g., the redeployed gateway endpoint)
  • Alternatively, redeploy the model gateway service at mdl-model-gateway-esb1qo.bl.run so the API-provided URL works again

Summary

  • Adds BL_MODEL_GATEWAY_URL environment variable support to override the mk3 model gateway URL across all SDK packages (@blaxel/core, @blaxel/vercel, @blaxel/langgraph, @blaxel/llamaindex)
  • This unblocks model integration tests when the platform-assigned gateway URL (mdl-model-gateway-esb1qo.bl.run) is unavailable — currently returning HTTP 404 "Service not found" for 14+ days

Context

The model gateway service has been undeployed/unreachable since May 28, causing all 11 model integration tests to fail. The gateway URL is dynamically fetched from the Blaxel API (modelData.metadata.url), so it cannot be fixed by changing the model name or endpoint in code alone.

This PR adds a settings.modelGatewayUrl getter backed by BL_MODEL_GATEWAY_URL that takes precedence over the API-provided URL when set, giving operators a way to redirect model traffic to a working endpoint without waiting for platform changes.

Related insight: https://app.mendral.com/insights/01KSR30RWQH96JY0NDFHMR961F


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

The model gateway at mdl-model-gateway-esb1qo.bl.run is returning 404
(service no longer deployed). This adds a BL_MODEL_GATEWAY_URL environment
variable that overrides the API-provided metadata URL for mk3 models,
allowing CI and users to point to a working gateway endpoint.

Affected packages: @blaxel/core, @blaxel/vercel, @blaxel/langgraph,
@blaxel/llamaindex
@mendral-app mendral-app Bot requested a review from a team June 3, 2026 21:01
@mendral-app mendral-app Bot marked this pull request as ready for review June 3, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants