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 integration #112

Open
xiaominame opened this issue Apr 18, 2024 · 3 comments
Open

ollama integration #112

xiaominame opened this issue Apr 18, 2024 · 3 comments

Comments

@xiaominame
Copy link

Can ollama be integrated?

@fishjar
Copy link
Owner

fishjar commented Apr 18, 2024

Since there are many AI models and they are updated very quickly, this may be arranged as a later plan.

@xiaominame
Copy link
Author

thank you,looking forward to your plan

@fishjar
Copy link
Owner

fishjar commented Apr 24, 2024

I found that the API of ollama is compatible with openai. You can use it by directly filling in the location of openai.

url should be filled in:

http://localhost:11434/v1/chat/completions

However, you need to set an environment variable before starting ollama

OLLAMA_ORIGINS=*

I will preset more openai interfaces in the next version.

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

2 participants