feat: Add tool call normalization and streaming delta accumulation

Adds support for correctly handling tool calls in chat requests. Normalizes tool call data (ensuring IDs, types, and JSON arguments) in non-streaming mode and accumulates OpenAI-style deltas during streaming to build the final Ollama response.
This commit is contained in:
Alpha Nerd 2026-02-10 20:21:46 +01:00
parent 4892998abc
commit 9875eb977a
2 changed files with 108 additions and 20 deletions

View file

@ -863,7 +863,7 @@ function renderTimeSeriesChart(timeSeriesData, chart, minutes) {
const formatUntil = (value) => {
if (value === null || value === undefined || value === "") {
return "Forever";
return "";
}
let targetTime;