Skip to content

Support for ollama #57

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

Closed
pmffromspace opened this issue Dec 10, 2024 · 2 comments
Closed

Support for ollama #57

pmffromspace opened this issue Dec 10, 2024 · 2 comments

Comments

@pmffromspace
Copy link

Hey there is the support for ollama planned?
I tried, and tought ollama api and openAI api are same but i cant get it working.

Kind regards
pmf

@hibobmaster
Copy link
Owner

hibobmaster commented Dec 11, 2024

Hi, ollama works on well by using the OpenAI API.
Here is a working config:

{
    "homeserver": "https://<redacted>",
    "user_id": "@<redacted>:<redacted>",
    "password": "<redacted>",
    "device_id": "matrix_chatgpt_bot",
    "gpt_api_endpoint": "http://192.168.0.163:11434/v1/chat/completions",
    "gpt_model": "qwen2.5"
}

Make sure http://192.168.0.163:11434/v1/chat/completions is accessable by matrix_chatgpt_bot.

@pmffromspace
Copy link
Author

Thanks a lot that solved the issue!

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