Skip to content

Conversation

@jamesbraza
Copy link
Collaborator

I realized our citation peeks could be multimodal, when we only use the texts in the ensuring LLM prompt.

Having the peek be multimodal was a mistake from #1047

@jamesbraza jamesbraza self-assigned this Oct 15, 2025
Copilot AI review requested due to automatic review settings October 15, 2025 23:16
@jamesbraza jamesbraza added the bug Something isn't working label Oct 15, 2025
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 15, 2025
@dosubot
Copy link

dosubot bot commented Oct 15, 2025

Related Documentation

Checked 1 published document(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where citation peeks were inadvertently including multimodal content (images) when only text should be used for LLM prompts. The fix ensures citation peeks are text-only by explicitly setting parse_images=False regardless of the global multimodal configuration.

  • Explicitly disables image parsing for citation peeks
  • Adds memory cleanup by deleting temporary variables after use

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 16, 2025
@jamesbraza jamesbraza merged commit 105f42d into main Oct 16, 2025
7 checks passed
@jamesbraza jamesbraza deleted the non-multimodal-peek branch October 16, 2025 00:23
@dosubot
Copy link

dosubot bot commented Oct 16, 2025

Documentation Updates

1 document(s) were updated by changes in this PR

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants