mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
Ollama API: option "stop" must be of type array #123
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 @nielsmaerten on GitHub (Dec 26, 2023).
Originally assigned to: @tjbck on GitHub.
Bug Report
Description
Bug Summary:
Hi, thanks for this awesome project!
I ran into this issue when trying to set my stop sequence to
\n\n(so my output would be limited to a single paragraph).After saving this stop sequence, Ollama API rejects calls with the error:
option "stop" must be of type array.Steps to Reproduce:
\n\n(though any string will work)Expected Behavior:
Actual Behavior:
option "stop" must be of type arrayEnvironment
Model: dolphin-mixtral
Ollama Web UI Version v1.0.0-alpha.33
Ollama Version 0.1.17
Reproduction Details
But, the API is expecting an array, so the correct value would have been
Confirmation:
Logs
Browser Console Logs:
XHR POST http://hello-ollama/ollama/api/chat
[HTTP/1.1 400 Bad Request 853ms]
VersionHTTP/1.1
Transferred 403 B (163 B size)
Docker Container Logs:
N/A
Installation Method
Docker with external Ollama instance running on same server, but outside docker
Additional Information
I've attempted a fix in https://github.com/nielsmaerten/ollama-webui/tree/bugfix/options-stop-array
While this works for me, it may need to be cleaned up a bit.
Screenshots
@tjbck commented on GitHub (Dec 27, 2023):
Hi, Thanks for creating this issue! I'll actively work on this issue soon as I merge #216 to main. Stay tuned!
@tjbck commented on GitHub (Dec 28, 2023):
Hi, Just merged the branch with the fix #301 to main! Let me know if the issue still persists, Thanks!
@nielsmaerten commented on GitHub (Dec 28, 2023):
Just updated my docker container, and it's working without a hitch now :) Many thanks!