feat: support OpenAI-compatible local providers#17
Merged
benmaster82 merged 1 commit intoJul 19, 2026
Conversation
benmaster82
added a commit
that referenced
this pull request
Jul 19, 2026
- injector: when the full multi-format clipboard snapshot fails (e.g.
an app with delayed rendering holds a format), fall back to the
historical text-only save/restore instead of aborting the paste.
The text-only restore also skips if the clipboard changed during
the paste. Adds fallback tests.
- README: restore a strong privacy tagline ("No cloud required, no
account, no telemetry") and warn that pointing the OpenAI-compatible
URL at a remote endpoint forfeits the offline/privacy guarantees.
Verified: 68 tests green, plus a real Win32 smoke test (bitmap on the
clipboard survives swap-to-text and restore with correct pixels).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an opt-in OpenAI-compatible local LLM provider while preserving Ollama as the default.
Fixes #16.
What changed
/v1/modelsdiscovery,/v1/chat/completionsrequests, optional bearer-token support, and OpenAI tool-call argument normalization.Validation
python -m py_compile assistant.py config.py main.py settings_window.py locales.py test_assistant.py test_settings_provider.pypython -m unittest discover -v— 54 tests passruff check test_assistant.py test_settings_provider.pyGET /v1/models,POST /v1/chat/completions, tool schema submission, and returned tool-call normalization.list_notes,save_note, andcreate_appointmenttools; the fullassistant.process()path also passed.An end-to-end manual run was also completed successfully: WritHer captured microphone input, transcribed it, sent the command to the local llama.cpp server, parsed the returned tool call, and executed the requested action.
AI assistance: OpenAI Codex was used for specification research, implementation, and local validation.