mirror of
https://github.com/open-webui/open-webui
synced 2025-06-08 23:47:14 +00:00
refac
This commit is contained in:
parent
ad1486c8bd
commit
c667d27c38
@ -1430,11 +1430,12 @@ async def process_chat_response(
|
|||||||
|
|
||||||
if after_tag:
|
if after_tag:
|
||||||
content_blocks[-1]["content"] = after_tag
|
content_blocks[-1]["content"] = after_tag
|
||||||
|
tag_content_handler(
|
||||||
|
content_type, tags, after_tag, content_blocks
|
||||||
|
)
|
||||||
|
|
||||||
content = after_tag
|
|
||||||
break
|
break
|
||||||
|
elif content_blocks[-1]["type"] == content_type:
|
||||||
if content and content_blocks[-1]["type"] == content_type:
|
|
||||||
start_tag = content_blocks[-1]["start_tag"]
|
start_tag = content_blocks[-1]["start_tag"]
|
||||||
end_tag = content_blocks[-1]["end_tag"]
|
end_tag = content_blocks[-1]["end_tag"]
|
||||||
# Match end tag e.g., </tag>
|
# Match end tag e.g., </tag>
|
||||||
|
@ -202,7 +202,6 @@
|
|||||||
{createMessagePair}
|
{createMessagePair}
|
||||||
placeholder={$i18n.t('How can I help you today?')}
|
placeholder={$i18n.t('How can I help you today?')}
|
||||||
onChange={(input) => {
|
onChange={(input) => {
|
||||||
console.log('input', input);
|
|
||||||
if (input.prompt !== null) {
|
if (input.prompt !== null) {
|
||||||
localStorage.setItem(`chat-input`, JSON.stringify(input));
|
localStorage.setItem(`chat-input`, JSON.stringify(input));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user