mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-20 07:30:19 +01:00
mtmd: Place the image <__media__> at the top of the prompt
This commit is contained in:
parent
1168004067
commit
3f5ec9644f
|
|
@ -289,7 +289,7 @@ def generate_chat_prompt(user_input, state, **kwargs):
|
|||
if image_refs or attachments_text:
|
||||
enhanced_user_msg = user_msg
|
||||
if image_refs:
|
||||
enhanced_user_msg += f" {image_refs}"
|
||||
enhanced_user_msg = f"{image_refs}\n\n{enhanced_user_msg}"
|
||||
if attachments_text:
|
||||
enhanced_user_msg += f"\n\nATTACHMENTS:\n{attachments_text}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue