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

[BUG]: Generic OpenAI endpoint does not work with Ollama #2925

Closed
sharpe5 opened this issue Jan 1, 2025 · 1 comment
Closed

[BUG]: Generic OpenAI endpoint does not work with Ollama #2925

sharpe5 opened this issue Jan 1, 2025 · 1 comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.

Comments

@sharpe5
Copy link

sharpe5 commented Jan 1, 2025

How are you running AnythingLLM?

AnythingLLM desktop app on MacOS (Macbook Pro).

What happened?

I want to connect AnythingLLM to Ollama using the generic OpenAI-compatible endpoint. I configure as per the API docs on Ollama:

image

However, when I create a new workspace, chats are broken.

Yes, it is possible to configure AnythingLLM to talk directly to Ollama, but this is also broken and I would prefer to use a generic OpenAI-compatible endpoint.

Are there known steps to reproduce?

To reproduce:

  1. Install ollama locally from www.ollama.com.
  2. Run Ollama locally:
gravitas@PHIENGINE1 C:\Users\Gravitas>ollama run llama3.2
>>> test
It looks like you're just testing to see if I'm working.
  1. Attempt to configure AnythingLLM to talk to Ollama via the OpenAI-compatible endpoint.
@sharpe5 sharpe5 added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label Jan 1, 2025
@timothycarambat
Copy link
Member

Yeah, because it works differently than ollama does for stream chunk handling. Just use the Ollama provider since it is fully supported as an LLM anyways - then you wont have any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.
Projects
None yet
Development

No branches or pull requests

2 participants