Skip to content

[Bug]: OpenAI provider model discovery ignores Base URL override #103

@lfnovo

Description

@lfnovo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreadyIssue is fully specified and ready for the development team to pick up

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions