Powered by
Claude vision support
# ❓|questions
e
ert6935
02/21/2025, 2:56 PM
Any chance that promptfoo will support this? I am trying to input an image but I have to convert it to base64 image.
m
michaelmichaelmichael
02/24/2025, 9:08 AM
Check out this example:
https://github.com/promptfoo/promptfoo/tree/main/examples/claude-vs-gpt-image
Unfortunately, the node js sdk does not natively convert image files to base64 or the anthropic prompt format, but you can use the example above to encode images as a file path / url etc. Also recommend reading through
https://docs.anthropic.com/en/docs/build-with-claude/vision
(you may want to add a resizer for example)
e
ert6935
02/27/2025, 2:38 PM
Appreciate the answer, thank you!
2
Views
Previous
Next