fix: Explicitly mark attachment descriptions in AI response

This commit is contained in:
Slipstream 2025-05-27 22:02:22 -06:00
parent 70ad9af28c
commit 145c91c5c2
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -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}")