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

Ollama support #10

Open
shouryan01 opened this issue Jan 9, 2024 · 6 comments
Open

Ollama support #10

shouryan01 opened this issue Jan 9, 2024 · 6 comments

Comments

@shouryan01
Copy link

shouryan01 commented Jan 9, 2024

Ollama is a very popular backend for running local models with a large library of supported models. It would be great to see ollama support

@FarisHijazi
Copy link
Owner

Does it expose an openai endpoint? If it does, then support should be simple

@shouryan01
Copy link
Author

It doesn't, however can make use of LiteLLM to wrap the endpoint to make it openai compatible

@FarisHijazi
Copy link
Owner

good idea, will work on it soon

been super busy last few months, I'd appreciate if you could try things out and lemme know if you face any issues, it should be simple like just pointing the middleware to the Ollama/litellm openai port

@Mayorc1978
Copy link

It doesn't, however can make use of LiteLLM to wrap the endpoint to make it openai compatible

So it's possible to run ollama in docker, and let's say it exposes the usual localhost:11434 port, then using LiteLLM you can convert that port exposure to a OpenAI endpoint ? Or do you need to run the Ollama model right from LiteLLM?

@shouryan01
Copy link
Author

It doesn't, however can make use of LiteLLM to wrap the endpoint to make it openai compatible

So it's possible to run ollama in docker, and let's say it exposes the usual localhost:11434 port, then using LiteLLM you can convert that port exposure to a OpenAI endpoint ? Or do you need to run the Ollama model right from LiteLLM?

Looks like LiteLLM provides a docker image

@FarisHijazi
Copy link
Owner

I'll try to get on it soon after fixing the authentication

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

3 participants