Skip to content

Conversation

@Tishasoumya-02
Copy link
Contributor

@Tishasoumya-02 Tishasoumya-02 commented Oct 23, 2025

Make the isImageURL more robust. Previously it used to only check for particular image type and at times some images added by the llm was not passing the check, but with the current suggesting implementation, it checks -

  1. For data URLs, check MIME type
  2. For external URLs , Inspecting HTTP Headers (Content-Type)

@danalvrz
Copy link
Contributor

@Tishasoumya-02 I moved the image url validation to the tool handler to keep the processBlocks method synchronous. Please take a look and test it.

@Tishasoumya-02
Copy link
Contributor Author

@danalvrz , yes it works nicely!

@Tishasoumya-02
Copy link
Contributor Author

I noticed sometimes , maybe it's the llm , it adds an image but maybe the url is broken few times, maybe there is a way to check it? I'm not sure, can check it if it's possible

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants