Skip to content

making a custom ai endpoint option#352

Open
GRbit wants to merge 1 commit intoddworken:masterfrom
GRbit:custom-llm-client
Open

making a custom ai endpoint option#352
GRbit wants to merge 1 commit intoddworken:masterfrom
GRbit:custom-llm-client

Conversation

@GRbit
Copy link
Copy Markdown
Contributor

@GRbit GRbit commented May 5, 2026

Hi there again!

Once again, thanks for the awesome project, it's a pleasure to use it. I especially enjoy the AI functionality, right what I need, no bullshit, just one liner in response - works like magic!

Though, it would be nice to have an option to use my own OpenAI compatible endpoints like llama.cpp or ollama. This is what this PR does. The goal was to make it as small as possible, yet working, so you can save time reviewing it.

P.S.: From what I see, it looks like AI related code is a bit messy, for example how GetAiProvider is used. Like, previously it was set to a constant, and then there is an if checking what's return. Doesn't make much sense, since it's always the same. I end up with code like this myself many times switching ideas and concepts during development. Would you like to see a better refactoring maintaining backward compatibility? If yes, I might find time to do it.

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.

1 participant