Skip to content

Conversation

@pankaj-bind
Copy link
Contributor

@pankaj-bind pankaj-bind commented Nov 10, 2025

Description

Added support to configure all gateway settings using environment variables instead of just config.yml. Now you can set any config parameter via env vars with GATEWAY_ prefix. Complex fields like providers and pricing can be set using JSON strings.

PR Type

🆕 New Feature

Relevant issues

Fixes #610

Changes Made

  • Modified config.py to support env vars for all fields with proper precedence
  • Added JSON parsing for complex nested configs (providers, pricing, etc.)
  • Environment variables now take precedence over file config
  • Added comprehensive unit tests in test_gateway_config.py

Checklist

  • I have added unit tests that prove my fix/feature works
  • New and existing tests pass locally
  • Documentation was updated where necessary
  • I have read and followed the contribution guidelines

@github-actions
Copy link
Contributor

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: support for all config parameters in config.yml to be env vars instead

1 participant