Skip to content

Openrouter provider gives 404 when added via onboard #245

@ElonSatoshi

Description

@ElonSatoshi

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Add Platform
  2. Add OpenRouter
  3. Leave the API URL as default (https://openrouter.ai/api/v1/
  4. Set your API key.
  5. Choose a model (I'm using openrouter/free to automatically set a model)
  6. Finish the onboarding and start a new conversation
  7. Say "test" or something else.
  8. Observe the error (which gets printed the same as if it were AI inference)

Expected behavior
The response to "test" is similar to "I'm working correctly and ready to answer your questions." or "Everything's working as expected

Actual behavior
It gives you a long HTML page, the beginning of which mentions a 404

Screenshots or Screen Recording
If applicable, add screenshots to help explain your problem.

Additional context
This can be fixed by going into the settings, then Providers, then taking off the v1/ at the end of the API URL for OpenRouter. (https://openrouter.ai/api/)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions