mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #7920] [MERGED] feat: pass structured output format through to ollama #8932
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/7920
Author: @envision3d
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/17/2024
Merged by: @tjbck
Base:
dev← Head:ollama-structured-output📝 Commits (1)
16d9002feat: pass structured output format through to ollama📊 Changes
2 files changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/ollama.py(+1 -1)📝
backend/open_webui/utils/payload.py(+3 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
formatto the chat/completions endpoint to make use of ollama's newly added structured output functionalityAdded
formatproperty for chat/completionsChanged
formatfield inGenerateChatCompletionFormDocumentation PR
https://github.com/open-webui/docs/pull/319
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.