fix: Explicitly mark attachment descriptions in AI response
This commit is contained in:
parent
70ad9af28c
commit
145c91c5c2
@ -924,7 +924,7 @@ async def get_ai_response(cog: 'GurtCog', message: discord.Message, model_name:
|
||||
preformatted_desc = desc_map.get(filename, {}).get("description", f"[File: {filename} (unknown type)]")
|
||||
|
||||
# Add the descriptive text part using the pre-formatted description
|
||||
instruction_text = f"{preformatted_desc}" # Simplified: Just use the description
|
||||
instruction_text = f"[ATTACHMENT] {preformatted_desc}" # Explicitly mark as attachment
|
||||
attachment_parts_to_add.append(types.Part(text=instruction_text))
|
||||
print(f"Added text description for attachment: {filename}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user