Skip to content

[Bug]: Podcast generation fails with "Provider 'openai_compatible' not supported" error #570

@EddiePengg

Description

@EddiePengg

What did you do when it broke?

Description
When using a custom model provider with the name openai_compatible, podcast generation fails. The system returns an error indicating that only openai-compatible (with hyphen) is supported.

Error Message
ValueError: Provider 'openai_compatible' not supported for language. Supported providers: ['openai', 'openai-compatible', 'anthropic', 'google', 'groq', 'ollama', 'openrouter', 'xai', 'perplexity', 'azure', 'mistral', 'deepseek', 'vertex']

Steps to Reproduce

  1. Configure a custom model with provider set to openai_compatible
  2. Try to generate a podcast
  3. Generation fails with empty outline and transcript

Expected Behavior
Either:

  • Both openai_compatible and openai-compatible should be accepted, OR
  • The UI should enforce the correct format (openai-compatible) to prevent this error

Environment

  • Open Notebook version: v1.7.0
  • Deployment: Docker Compose
    Suggestion
    Consider normalizing the provider name (replacing _ with -) or documenting that only hyphen format is valid.
    ▣ Build · glm-5 · 14.7s

How did it break?

null

Logs or Screenshots

Image

Open Notebook Version

v1-latest (Docker)

Environment

No response

Additional Context

No response

Contribution

  • I am a developer and would like to work on fixing this issue (pending maintainer approval)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds initial review and classification

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions