Skip to content

image handling for ollama#16

Merged
mina-parham merged 2 commits into
mainfrom
add/ollama-image
Jul 29, 2025
Merged

image handling for ollama#16
mina-parham merged 2 commits into
mainfrom
add/ollama-image

Conversation

@mina-parham

Copy link
Copy Markdown
Contributor

No description provided.

@mina-parham mina-parham marked this pull request as draft July 28, 2025 14:43
for part in message["content"]:
if part.get("type") == "image_url":
if image_paths:
if image_paths and self.model_path.rsplit(".", 1)[-1] != "gguf":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this condition to make things work for GGUF in general or for ollama specifically? I'm guessing it's the Ollama OpenAI API interface thing you were talking about?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it's for ollama only

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK hmm...if it's for ollama then we should figure out a way to not make the check for gguf, but for ollama specifically. Maybe the ollama plugin paths some special parameter in? Like a parameter that defaults to the normal way but can be overridden?
This is all assuming we can get this to work reliably in ollama in the first place. :)

@mina-parham mina-parham marked this pull request as ready for review July 28, 2025 20:47
@mina-parham mina-parham merged commit 016c32f into main Jul 29, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants