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

Preliminary support for local LLM endpoints (tested on Ollama) #71

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

pc9441
Copy link
Contributor

@pc9441 pc9441 commented Dec 3, 2024

A working preliminary implementation tested on Ollama (feature request #66).
Added two GUI configuration entries. If the endpoint URL is set, then the cost is not calculated, and instead of model from dropdown, the custom model name is used.
Test example:
Custom endpoint - "http://localhost:11434/v1"
Custom model - "qwen2.5-coder:32b-instruct-q6_K"

@mahaloz
Copy link
Owner

mahaloz commented Dec 4, 2024

Thanks for the PR! Just some small changes and we are good to go

@mahaloz mahaloz self-requested a review December 5, 2024 08:34
@mahaloz mahaloz merged commit 7f2be25 into mahaloz:main Dec 5, 2024
1 check passed
mahaloz pushed a commit that referenced this pull request Dec 6, 2024
* Preliminary support for local LLM endpoints (tested on Ollama)

* Added early bail out, changed the api_key handling order
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

Successfully merging this pull request may close these issues.

2 participants