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.

1.1 KB
Raw Blame

POST /api/save_raw_config now refuses a configuration larger than 512 KiB, or with a key or table header of more than 32 dotted parts, with a 400 error before it is parsed. One long dotted key costs Python's TOML parser time, and on a key/value line memory, that grows with the square of its number of parts, and the endpoint accepts bodies of up to 16 MB from any signed-in user, even where configuration writes are disabled. The check for protected keys that follows the parse now also runs off the event loop and builds a path only for a protected key: it built the path of every key and kept every protected one, so the keys under one long table name each repeated that name, and a configuration within the parsing limits could make it build over a gigabyte of paths on the event loop. Its 403 response lists at most 100 protected keys, each path cut to at most 200 characters, and sets blocked_keys_truncated to true when there are more; the configuration is refused either way. A configuration nested deeper than Python's recursion limit is now checked too, instead of failing with a 500 error.