Applies to:
Summary
When multiple AI providers support the same model, Braintrust automatically load balances requests across all available providers. Use thex-bt-endpoint-name header to override this behavior and route requests to a specific provider credential. Note: This feature is only available through API calls and cannot be configured in the Braintrust UI.
Configuration Steps
Step 1: Identify provider credential name
Find the credential name from the AI providers settings page (e.g.,AWS_DEFAULT_CREDENTIALS, GOOGLE_DEFAULT_CREDENTIALS, OPENAI_API_KEY). Alternatively, retrieve available providers using the List AI secrets API endpoint.
Step 2: Add header to API requests
Include thex-bt-endpoint-name header with the provider credential name as the value in your API calls.
Step 3: Verify provider selection
Check thex-bt-used-endpoint response header to confirm which provider handled the request.