Skip to content

Commit

Permalink
Only include images for user messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 19, 2024
1 parent f7138c6 commit 6514f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async def hey(self, ctx: commands.Context):
# The types below are what OpenAI supports
if attachment.content_type in ("image/jpeg", "image/png", "image/gif", "image/webp")
),
],
] if author_display_name_with_id else [],
)
)
if prompt_token_count_so_far > self.TOKEN_LIMIT:
Expand Down

0 comments on commit 6514f6c

Please sign in to comment.