mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 04:24:30 -05:00
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/2453
Author: @AlyMobarak
Created: 5/21/2024
Status: ✅ Merged
Merged: 5/21/2024
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (10+)
be5534cMerge pull request #2376 from open-webui/dev66c2024Merge pull request #2395 from open-webui/dev7068ea9Merge pull request #2397 from open-webui/dev2ce6535Merge pull request #2401 from open-webui/dev175293fMerge pull request #2422 from open-webui/devaea81fcMerge pull request #2427 from open-webui/dev3355577Merge pull request #2436 from open-webui/dev8116b04Filter message and don't send over any message that has empty contents to OpenAI's API.a07b89dUpdated filter to filter null message objects as well.b87cf0dFilters messages before going through to the OpenAI API to not include any empty messages.📊 Changes
2 files changed (+32 additions, -31 deletions)
View changed files
📝
src/routes/(app)/+page.svelte(+16 -16)📝
src/routes/(app)/c/[id]/+page.svelte(+16 -15)📄 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
I've noticed an issue with the UI described at issue https://github.com/open-webui/open-webui/issues/2447. After fiddling around for some time, I've come up with a really simple solution that doesn't require any major code refactoring or even a change in testing methods. I simply added a rule to filter messages before getting sent to OpenAI API and remove empty ones. I have no idea if the actual OpenAI API accepts this or not as I'm broke enough to not be able to buy the API and test on it, but it should work fine based on my ChatGPT free usage network monitoring.
I've tested it on my LM Studio OpenAI like server and it works like a charm now.. I'll be using my local image for the docker container (which was built successfully btw) until this change is hopefully upstream.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
BEFORE:

AFTER:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.