mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-12 19:13:34 -05:00
[GH-ISSUE #1366] Unable to use Ollama API proxy #12463
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @georg3k on GitHub (Mar 31, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1366
Bug Report
Description
Bug Summary:
I'm trying to connect to the Ollama API via WebUI backend (as it is shown in README). WebUI works just fine, direct connection to Ollama API by port doesn't have any problems too, but /ollama/api/... endpoints don't seem to work properly.
Steps to Reproduce:
Make request using /ollama API endpoint:
Expected Behavior:
Same as direct request to 11434 port:
Actual Behavior:
Actual response:
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Docker Container Logs:
Installation Method
Deployed with docker-compose:
@tjbck commented on GitHub (Mar 31, 2024):
Most likely the issue is occurring because Ollama couldn't find the model you specified in the body data, Here's the correct format for the payload:
Updated the error message in our dev branch, let me know if the issue persists!
@georg3k commented on GitHub (Mar 31, 2024):
@tjbck, direct requests to the ollama server work without model tag, so I thought that WebUI passes it as is and it should work the same way. With version specified it works now, thanks!