Liking cljdoc? Tell your friends :D
Clojure only.

ragtacts.llm.open-ai


with-imagesclj

(with-images text & images)

Return a message with an image.

Args:

  • text: The prompt to ask the user.
  • images: A list of image URLs or input streams.

Example:

(->
  (with-images "What are in these images? Is there any difference between them?"
    "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
    (io/input-stream "/tmp/sample.png"))
  ask
  last
  :ai)
Return a message with an image.

Args:
 - text: The prompt to ask the user.
 - images: A list of image URLs or input streams.

Example:
```clojure
(->
  (with-images "What are in these images? Is there any difference between them?"
    "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
    (io/input-stream "/tmp/sample.png"))
  ask
  last
  :ai)
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close