mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #3609] /ollama/api/generate api for customGPTs
#28851
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 @veya2ztn on GitHub (Jul 3, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3609
The openwebup support api usage like
[OWEB]/ollama/api/generatefor base mode loaded from ollama.However, if I want to wrapper the base model (for example, the
qwen2model) with certernThe
[OWEB]/ollama/api/generatewill returnstatus code: 400.below is a sample that get property result via

[OWEB]/ollama/api/generate, the model namedqwen2:72b-instruct-q4_0If I wrapper it in a customGPTs that even with no any extra setting. (we name it

qwentest)The reason for such suggestion.
The
[OWEB]/ollama/api/generateis usually for thecode completiontask. Currently, it barely base on the ability of the base model such as starcode2 or deepseek-code. Enable preset prompt may help to build much more robust code. Moreover, I also wise thecode completioncan eventully becometext completionthat forwritting as copilot way