mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #6777] Unable to specify context when using generate from the ollama API #53146
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 @ma3oun on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6777
Bug Report
Installation Method
Docker
Environment
Open WebUI Version: [v0.3.35]
Ollama (if applicable): [v0.4.0]
Operating System: [Ubuntu 24.04]
Browser (if applicable): [Brave Browser]
Confirmation:
Expected Behavior:
Calling the /generate POST function with a context should generate an answer that considers that context
Actual Behavior:
Calling the /generate POST function fails as "Bad request"
Description
Bug Summary:
Calling the /generate POST function fails when the user adds "context" in the POST. The context is the output of a previous call to /generate.
Reproduction Details
Steps to Reproduce:
Here's a sample python code to reproduce the bug.
Logs and Screenshots
The server's response after the second prompt is:
Additional information
If context is not provided as string, the error is a schema validation error.