[GH-ISSUE #797] issue: rerank api does not follow openai API convention and requires full url to be put in the config #109

Closed
opened 2026-10-18 14:09:04 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @ghost on GitHub (Nov 7, 2025).
Original GitHub issue: https://github.com/open-webui/docs/issues/797

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.36

Ollama Version (if applicable)

No response

Operating System

Linux

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/openai.py

Actual Behavior

github.com/open-webui/open-webui@e0d5de1697/backend/open_webui/retrieval/models/external.py (L19)

Steps to Reproduce

put api.openai.com/v1 doesn't work
put api.openai.com/v1/rerank and it works

Logs & Screenshots

> File "/app/backend/open_webui/retrieval/models/external.py", line 62, in predict
     r.raise_for_status()
     │ └ <function Response.raise_for_status at 0x7de068594180>
    └ <Response [404]>

   File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1026, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
       │         │                        └ <Response [404]>
       │         └ '404 Client Error: Not Found for url: https://api.openai.com/v1'
      └ <class 'requests.exceptions.HTTPError'>
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.openai.com/v1

Additional Information

No response

Originally created by @ghost on GitHub (Nov 7, 2025). Original GitHub issue: https://github.com/open-webui/docs/issues/797 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.36 ### Ollama Version (if applicable) _No response_ ### Operating System Linux ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/openai.py ### Actual Behavior https://github.com/open-webui/open-webui/blob/e0d5de16978786b8a7538adf1efcde5258f38faf/backend/open_webui/retrieval/models/external.py#L19 ### Steps to Reproduce put api.openai.com/v1 doesn't work put api.openai.com/v1/rerank and it works ### Logs & Screenshots ``` > File "/app/backend/open_webui/retrieval/models/external.py", line 62, in predict r.raise_for_status() │ └ <function Response.raise_for_status at 0x7de068594180> └ <Response [404]> File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) │ │ └ <Response [404]> │ └ '404 Client Error: Not Found for url: https://api.openai.com/v1' └ <class 'requests.exceptions.HTTPError'> requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.openai.com/v1 ``` ### Additional Information _No response_
bsakaguchi 2026-10-18 14:09:04 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tjbck commented on GitHub (Nov 8, 2025):

Should be addressed from the docs, "rerank" is not a legitimate OpenAI compatible endpoint.

<!-- gh-comment-id:3505604071 --> @tjbck commented on GitHub (Nov 8, 2025): Should be addressed from the docs, "rerank" is not a legitimate OpenAI compatible endpoint.
Author
Owner

@Classic298 commented on GitHub (Dec 20, 2025):

addressed in docs

<!-- gh-comment-id:3678071835 --> @Classic298 commented on GitHub (Dec 20, 2025): addressed in docs
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/docs#109
No description provided.