Usage body for LLaVA model #17

Closed
opened 2026-02-15 16:27:30 -05:00 by yindo · 1 comment
Owner

Originally created by @sanujenLLM on GitHub (Jan 30, 2024).

What is the request body for the LLaVA model which needs to handle image inputs along with text?

This is the sample provided in the repo for the llama2 model.

import ollama
response = ollama.chat(model='llama2', messages=[
  {
    'role': 'user',
    'content': 'Why is the sky blue?',
  },
])
print(response['message']['content'])
Originally created by @sanujenLLM on GitHub (Jan 30, 2024). What is the request body for the LLaVA model which needs to handle image inputs along with text? This is the sample provided in the repo for the llama2 model. ``` import ollama response = ollama.chat(model='llama2', messages=[ { 'role': 'user', 'content': 'Why is the sky blue?', }, ]) print(response['message']['content']) ```
yindo closed this issue 2026-02-15 16:27:30 -05:00
Author
Owner

@mxyng commented on GitHub (Jan 30, 2024):

llava is a multimodal model. There's an example here

@mxyng commented on GitHub (Jan 30, 2024): llava is a multimodal model. There's an example [here](https://github.com/ollama/ollama-python/blob/v0.1.5/examples/multimodal/main.py#L26)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#17