mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
fix: Ask and Explain keep dollar signs in the selected text and the question (#32356)
This commit is contained in:
parent
d34f73066d
commit
aa31e2b203
1 changed files with 3 additions and 3 deletions
|
|
@ -61,12 +61,12 @@
|
|||
prompt = prompt.replace(toolIdPattern, '');
|
||||
|
||||
if (prompt.includes('{{INPUT_CONTENT}}') && floatingInput) {
|
||||
prompt = prompt.replace('{{INPUT_CONTENT}}', floatingInputValue);
|
||||
prompt = prompt.replace('{{INPUT_CONTENT}}', () => floatingInputValue);
|
||||
floatingInputValue = '';
|
||||
}
|
||||
|
||||
prompt = prompt.replace('{{CONTENT}}', selectedText);
|
||||
prompt = prompt.replace('{{SELECTED_CONTENT}}', selectedContent);
|
||||
prompt = prompt.replace('{{CONTENT}}', () => selectedText);
|
||||
prompt = prompt.replace('{{SELECTED_CONTENT}}', () => selectedContent);
|
||||
|
||||
// Prepopulate the main chat input instead of inline streaming
|
||||
onSetInputText(prompt);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue