Files
frigate/frigate/genai
Josh HawkinsandGitHub 50b976889b Harden chat tool approvals (#25062)
* use server-generated tool call ids and drop remote images from chat messages

Chat write-tool approvals were keyed by the provider's tool call id, but Gemini uses the function name as the id and Ollama falls back to call_0, call_1, so a later or repeated write call in the same request reused an earlier approval and ran without a prompt. Each tool call the model returns now gets a unique server-generated id, and the Gemini plugin resolves a tool result's function name from the assistant's tool calls instead of from the id. Client message content now keeps only text parts and data:image/ image parts, so OpenAI-compatible servers and llama-server are never handed a remote URL to fetch.

* remove client image filter from chat messages
2026-11-24 06:35:19 -07:00
..
2026-10-10 15:01:33 -05:00
2026-11-20 07:59:53 -06:00
2026-10-09 08:01:09 -06:00