mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #10015] [CLOSED] fix: Ollama payload.py handling for num_predict and other options #22453
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/10015
Author: @ferret99gt
Created: 2/14/2025
Status: ❌ Closed
Base:
dev← Head:fix-ollama-option-handling-in-payload📝 Commits (5)
2017856Merge pull request #9945 from open-webui/dev19fecc1Update apply_model_params_to_body_ollama with all valid Ollama options and castingsb77842aUpdate convert_messages_openai_to_ollama to use the "options" subdict instead of the parent payload.ec8c460Fix bug due to typo, added num_predict to the mapping, and remove two personal comments2b246f7Whitespace fix📊 Changes
1 file changed (+47 additions, -52 deletions)
View changed files
📝
backend/open_webui/utils/payload.py(+47 -52)📄 Description
0.5.12
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
Changed
Removed
Fixed
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.