https://promptfoo.dev/ logo
Claude vision support
# ❓|questions
e
Any chance that promptfoo will support this? I am trying to input an image but I have to convert it to base64 image.
m
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
Appreciate the answer, thank you!
2 Views