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:
parent
4892998abc
commit
9875eb977a
2 changed files with 108 additions and 20 deletions
|
|
@ -863,7 +863,7 @@ function renderTimeSeriesChart(timeSeriesData, chart, minutes) {
|
|||
|
||||
const formatUntil = (value) => {
|
||||
if (value === null || value === undefined || value === "") {
|
||||
return "Forever";
|
||||
return "∞";
|
||||
}
|
||||
|
||||
let targetTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue