Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

4.7 KB
Raw Blame

Credentials embedded in a configured LLM or embeddings base URL are now redacted in these log lines: the OpenAI-compatible provider's LLM-creation (INFO) and model-listing (DEBUG) messages; the Ollama provider's LLM-creation (INFO) and client (DEBUG) messages and the "Checking Ollama availability at ..." (INFO) line of its availability check (when that check's request fails or times out, the shared request helper's warning already shows no more than the URL's scheme, host and port); the OpenAI embeddings provider's keyless-endpoint and model-listing (INFO) messages; the research start route's endpoint and Ollama-URL fallback messages; the research worker's "Research parameters" line (which retains main's stricter origin-only redaction); the friendly error message for OpenAI-compatible LLM failures; and URL-valued settings in the LDR_LOG_SETTINGS=debug settings dump, for dict and non-dict settings alike: values containing ://, scheme-less user:password@host values with any host (the user may be empty, as in :password@host; surrounding whitespace ignored; the password may contain whitespace, a newline included, but not start with it), and whitespace-free scheme-less values with a query or fragment such as localhost:1234/v1?api_key=...; a scheme-less name@host value without a password is not treated as a URL. Redaction removes user:password@ userinfo (also without a scheme); replaces the values of credential-named parameters in the query string, the fragment and ; path parameters (a name is split into words at camelCase boundaries and at every character other than an ASCII letter or digit, so accessToken, XAPIKey, x-api-key, api+key and key%00 are all split; it matches when its last word is key, apikey, token, secret, password, passwd, pwd, pass, passphrase, signature, sig, credential, credentials, jwt, session, assertion or verifier (so the OAuth grant secrets assertion, client_assertion, code_verifier and oauth_verifier match); when its last word ends in token, secret, password, passwd, passphrase, assertion or verifier (run-together names such as authtoken, APITOKEN, clientsecret and clientassertion); when its last word ends in one of the compounds apikey, appkey, accesskey, authkey, clientkey, encryptionkey, licensekey, masterkey, passkey, privatekey, secretkey, sessionkey, signingkey or subscriptionkey -- other words ending in key, such as monkey, do not match; or when the whole name, ignoring letter case and every character other than an ASCII letter or digit, is auth, authorization, bearer, code, sas, refresh, device_code, id_token_hint, auth_code or authorization_code (so deviceCode, devicecode, IDTOKENHINT and authCode match, while force_refresh and login_hint do not). Each of these tests is also run with a trailing number or version taken off the name (final words that are digits or v plus digits are dropped, then trailing digits, and a v just before them, come off the last word) and once more with a plural s also taken off the last word unless it ends in ss, so api_key_2, apiKey2, key1, token2, access_token_v2, x-api-key-v2 and api_keys match while page2, items and v2 do not; non-secret names such as sort_keys and max_tokens are redacted too. For an array-style name, the text before and inside each bracket is checked on its own and all-digit or empty indexes are ignored, so api_key[0], key[], auth[token], api_key[prod] and api_key[a][b] all match, while items[0] and data[name] do not. A name longer than 256 characters is treated as a credential name without being inspected); replaces any value-less query or fragment item of 17 or more characters; and replaces path segments shaped like a provider key (sk-/key- in any letter case plus 16 or more characters, or 32 or more letters, digits and underscores containing both a letter and a digit and no -). When the userinfo cannot be isolated reliably the whole URL is logged as <unknown>: that is the case for any @ in the path, query or fragment, with or without a scheme (including a harmless [email protected]); for a non-numeric port, as happens when a password contains an unencoded /, ? or #, or an @ followed by one of those; and for an authority containing ;, & or = (https://host;api_key=...). Any value longer than 4096 characters is also logged as <unknown> without being parsed, which bounds the work redaction does on a user-supplied endpoint. Other log lines that print URLs are unchanged, as is third-party libraries' own debug logging (such as the openai SDK's request log), which can still print the full URL.