mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
mtmd: Handle another case after 3f5ec9644f
This commit is contained in:
parent
59c6138e98
commit
2fe79a93cc
|
|
@ -326,7 +326,9 @@ def generate_chat_prompt(user_input, state, **kwargs):
|
|||
attachments_text += f"\nName: {filename}\nContents:\n\n=====\n{content}\n=====\n\n"
|
||||
|
||||
if image_refs or attachments_text:
|
||||
user_input = f"{user_input} {image_refs}"
|
||||
user_input = user_input
|
||||
if image_refs:
|
||||
user_input = f"{image_refs}\n\n{user_input}"
|
||||
if attachments_text:
|
||||
user_input += f"\n\nATTACHMENTS:\n{attachments_text}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue