Expand description
Optional one-shot LLM HTTP extract (XDG key only). One-shot optional LLM HTTP extract (XDG key only; no product env vars).
Uses an OpenAI-compatible chat completions endpoint configured via XDG
(openrouter_api_key, llm_base_url, llm_model). No telemetry.
Constants§
- DEFAULT_
LLM_ BASE_ URL - Default OpenAI-compatible base URL (path ends before
/chat/completions). - DEFAULT_
LLM_ MODEL - Default model id when XDG
llm_modelis unset.
Functions§
- base_
url - Base URL from XDG or default constant.
- chat_
completion - Call chat completions with retry/backoff (one-shot; no daemon).
- extract_
with_ llm - Build extract+LLM payload from free text and optional question/schema.
- model
- Model from XDG or default constant.
- require_
api_ key - Resolve API key from XDG only.