Repository navigation
Important Security fix for cross-site requests. NVIDIA GPU temperatures show up again on newer drivers.
Make sure you update to this releaes to pick up a security fix that prevents
third party websites to make requests to llama-swap after you've authenticated. Thank you to @willtejeda
for the report and suggested patch.
@JimJafar fixed a bug in parsing temperature values in newer nvidia-smi versions.
I wrote these release notes. Yay, I'm contributing.
- PR #1375 internal/perf: parse fractional nvidia-smi temperatures: reads
temperature.gpuwithParseFloatand rounds to the nearest degree (the same way the darwin backend handles mactop'sgpu_temp), because newer drivers such as 620.70.06 print decimals like56.90, whichstrconv.Atoifailed on soTempCstayed 0 and the Performance tab's temperature chart sat at zero; integer output from older drivers parses as before by @JimJafar - b6204f4 server: reject cross-site requests that use Basic auth: after you log in via the browser's Basic-auth prompt the browser attaches those credentials to requests other sites start (image tags, form posts) and CORS only hides the response, so a hostile page could unload models, pause/resume or start generations with your login;
CreateAuthMiddlewarenow 403s Basic-authenticated requests markedcross-siteorsame-sitebySec-Fetch-Site, with anOriginvsHostcheck for browsers lacking Fetch Metadata, keeps top-levelGETnavigation to/ui/working from other sites, leaves Bearer,x-api-keyand non-browser clients untouched, and documents the behavior in the API keys KB guide by @willtejeda