mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #4024] [MERGED] fix: seed and temperature can be 0 in models #37012
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/4024
Author: @Seth-Rothschild
Created: 7/20/2024
Status: ✅ Merged
Merged: 7/20/2024
Merged by: @tjbck
Base:
dev← Head:fix-seed-0📝 Commits (1)
c3693c9fix: allow temperature and seed to be 0📊 Changes
2 files changed (+7 additions, -4 deletions)
View changed files
📝
backend/apps/ollama/main.py(+2 -2)📝
backend/apps/openai/main.py(+5 -2)📄 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
Fixed
Additional Information
if model_info.params.get("temperature", None), which isFalsewhentemperatureis 0. Changed it toif model_info.params.get("temperature", None) is not None.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.