readme needs to show example of image generations #32

Closed
opened 2026-02-15 16:27:35 -05:00 by yindo · 2 comments
Owner

Originally created by @iplayfast on GitHub (Feb 14, 2024).

add an example to the readme for images

import ollamatry:
    chat = ollama.generate(model='llava', prompt='examine picture',images=['IMG_8798.JPG'])
    print(chat)
except ollama.ResponseError as e:
  print('Error:', e.error)
Originally created by @iplayfast on GitHub (Feb 14, 2024). add an example to the readme for images ``` import ollamatry: chat = ollama.generate(model='llava', prompt='examine picture',images=['IMG_8798.JPG']) print(chat) except ollama.ResponseError as e: print('Error:', e.error) ```
yindo closed this issue 2026-02-15 16:27:35 -05:00
Author
Owner

@mxyng commented on GitHub (Feb 23, 2024):

The readme captures base cases. For detailed examples, please see examples/.

There's an multimodal example here which describes one way of using the images keyword argument

@mxyng commented on GitHub (Feb 23, 2024): The readme captures base cases. For detailed examples, please see [examples/](https://github.com/ollama/ollama-python/tree/main/examples). There's an multimodal example [here](https://github.com/ollama/ollama-python/blob/main/examples/multimodal/main.py) which describes one way of using the `images` keyword argument
Author
Owner

@xmagcx commented on GitHub (Jul 17, 2024):

image
error example multimodal

@xmagcx commented on GitHub (Jul 17, 2024): ![image](https://github.com/user-attachments/assets/3d62f50c-171e-4653-bf13-51ee7767174d) error example multimodal
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#32