mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #11647] [MERGED] feat: allow string valves to include newlines #38403
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/11647
Author: @kaytwo
Created: 3/13/2025
Status: ✅ Merged
Merged: 3/15/2025
Merged by: @tjbck
Base:
dev← Head:multiline-valves📝 Commits (1)
53292e7allow string valves to include newlines📊 Changes
1 file changed (+12 additions, -1 deletions)
View changed files
📝
src/lib/components/common/Valves.svelte(+12 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Review comment: The code could be slightly refactored to use conditionals to decrease code duplication, but conditional element types in jsx-style code are notoriously hard to parse, so a bit of duplication doesn't seem too terrible.
Comment: Technically this could be a bug fix, depending on the intention for string valves in the first place.
Changelog Entry
string.Description
This code conditionally renders the valve input as a
<textarea>if the valve is of type string - this allows adding newlines to the string that gets saved to the backend.Additional Information
Relevant discussion post: #11646
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.