Skip to content

Conversation

@shuyangli
Copy link
Member

(This includes feature flags and I'm not yet sure if it's useful)

Introduces a request-scoped feature flagging system for the Postgres migration:

- New tensorzero-core/src/feature_flags module with:
  - FeatureFlags struct with compile-time default values
  - Task-local accessor get_feature_flags() callable from any code in request scope
  - Axum middleware parsing X-TensorZero-Feature-Flags header
  - Header format: comma-separated key:value pairs (e.g., use_postgres:true)

- Initial USE_POSTGRES flag (defaults to false)
- Unknown flags silently ignored (lenient validation)
- Boolean values accept: true/false, 1/0, yes/no (case-insensitive)
Load model inference data
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.

2 participants