patent v0.2.0
patent 0.2.0 adds support for any LLM backend and sharpens the verdict.
Highlights
- Use any LLM, not just Ollama.
--api-base(with--api-keyor the
OPENAI_API_KEYenv var) points the verdict at any OpenAI-compatible API —
OpenAI, OpenRouter, Groq, vLLM, LM Studio, llama.cpp. Local Ollama stays the
default, and--faststill skips the LLM entirely. - Better verdicts on close matches. A near-identical result is no longer
reported as "no matches found," and a single very-close match (similarity
≥ 0.70) is treated as a crowded space rather than open. - More robust fallback. Any backend failure — unreachable endpoint, wrong
model or key, malformed response — degrades to a search-only result instead of
aborting the run.
Install
cargo install patent
Or grab a prebuilt binary / one-line installer from the assets below.
Usage
# local Ollama (default)
patent "kubernetes log viewer"
# any OpenAI-compatible API
patent "kubernetes log viewer" --api-base https://api.openai.com/v1 --model gpt-4o-mini