Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image generation support for open source models #552

Open
ChillerDragon opened this issue Nov 30, 2024 · 0 comments
Open

Image generation support for open source models #552

ChillerDragon opened this issue Nov 30, 2024 · 0 comments

Comments

@ChillerDragon
Copy link

Using ollama as described in the readme works wonderfully for chat and embeddings. I am struggeling to get image generation to work with a open source selfhosted model.

This example from the readme does not seem to work with the ollama setup.

response = client.images.generate(
  parameters: {
    prompt: "A baby sea otter cooking pasta wearing a hat of some sort",
    size: "256x256",
  }
)
puts response.dig("data", 0, "url")

That is because ollama does not have the /v1/images/generations endpoint.

https://github.com/ollama/ollama/blob/5f8051180e3b9aeafc153f6b5056e7358a939c88/server/routes.go#L1170-L1175

So maybe this is something that has to be supported by ollama first? Even if that is the case I assume there is some open image generation model out there that could be used. Having a section in the readme on how to get that working would be much appreciated.

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

No branches or pull requests

1 participant