mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #4915] Original ollama send Content-Type: application/x-ndjson #84526
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 @unixshaman on GitHub (Aug 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4915
Is your feature request related to a problem? Please describe.
When I send request to original ollama service, like this:
get next response:
When I send equal request to ollama through topen-webui
get next response:
Describe the solution you'd like
It is necessary to pass all headers from the original ollama service. Well, or at least the correct Content-Type: application/x-ndjson.
Describe alternatives you've considered
I tried to use openAI compatible API through /v1/chat/completions and this work correctly, i get Content-Type: application/json.
@silentoplayz commented on GitHub (Aug 26, 2024):
@unixshaman Ignore the comment above that tells you to download something at all costs. These are bot accounts attempting to spread some form of unwanted malware. Our GitHub Updates channel on Discord has made us aware today that newly opened posts on the repository are being targeted by an unknown actor.
@unixshaman commented on GitHub (Aug 26, 2024):
Thank you very much for the explanation! I understood it as soon as I saw it.
@unixshaman commented on GitHub (Aug 26, 2024):
By the way, I need this modification so that the GhatGPT plugin for IntelliJ IDEA works correctly: https://github.com/carlrobertoh/CodeGPT/issues/674
@tjbck commented on GitHub (Aug 27, 2024):
Should be fixed on dev, testing wanted here!
@unixshaman commented on GitHub (Aug 28, 2024):
Hello @tjbck !
Thank you very much for working on the feature.
I saw commit
689b05a73d, and it into release https://github.com/open-webui/open-webui/releases/tag/v0.3.16 , if I'm not mistaken.I update my service and check this again, but result is same, no header in response.
@Peter-De-Ath commented on GitHub (Sep 5, 2024):
It looks okay to me
@unixshaman commented on GitHub (Sep 6, 2024):
Yes, now it's works! Many many thanks!