mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-15 04:18:18 +00:00
fix: Ask and Explain keep dollar signs in the selected text and the question
This commit is contained in:
parent
93d25dbe3b
commit
4e04cebde6
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