Problem
When a custom Base URL is configured for the OpenAI provider, model discovery still hits the hardcoded https://api.openai.com/v1/models endpoint, ignoring the override. This breaks discovery for any OpenAI-compatible endpoint (LiteLLM, local proxies, etc.).
Error
WARNING | api.credentials_service:discover_with_config:637 - Failed to discover openai models: Client error '401 Unauthorized' for url 'https://api.openai.com/v1/models'
Expected Behavior
Model discovery should use the configured Base URL override when present.
References
Problem
When a custom Base URL is configured for the OpenAI provider, model discovery still hits the hardcoded
https://api.openai.com/v1/modelsendpoint, ignoring the override. This breaks discovery for any OpenAI-compatible endpoint (LiteLLM, local proxies, etc.).Error
Expected Behavior
Model discovery should use the configured Base URL override when present.
References