PrefectHQ / marvin

✨ Build AI interfaces that spark joy
https://askmarvin.ai
Apache License 2.0
5.34k stars 348 forks source link

add image files to thread via add method (supports Assistant API vision) #939

Closed andehr closed 5 months ago

andehr commented 5 months ago

Closes https://github.com/PrefectHQ/marvin/issues/932

Adds parameter image_files to Thread.add() to allow adding images to Threads.

Example usage:

thread = Thread()
thread.add("some message", role="user", image_files=["path/to/image.png"])