Skip to content

fix(api): honor environment mode before automatic MaaS selection - #252

Open
itzKLAUS wants to merge 1 commit into
zai-org:mainfrom
itzKLAUS:fix/env-mode-precedence
Open

itzKLAUS wants to merge 1 commit into
zai-org:mainfrom
itzKLAUS:fix/env-mode-precedence

Conversation

@itzKLAUS

@itzKLAUS itzKLAUS commented Oct 8, 2026

Copy link
Copy Markdown

Check layered environment/.env overrides before automatically selecting MaaS from an available API key. Preserve explicit constructor-mode priority and the existing automatic MaaS behavior when no environment mode is present.

Validation: 138 tests pass and 22 optional tests skip across the new precedence tests and existing unit suite. Both environment and explicit .env self-hosted cases fail on upstream; the constructor-override control already passes. All pre-commit checks pass. Pipeline creation is mocked; no cloud OCR requests, model weights or local inference are used.

Fixes #251

This branch has not been deployed

No deployments
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.

fix(api): honor environment mode before automatic MaaS selection

2 participants