When using native tool calling, the assistant's tool_calls must be saved in message history. Without this, the model doesn't know it already called a tool and may loop indefinitely calling the same tool. This fix adds tool_calls forwarding in chatStreamResponse and chatWithOptions history formatting.
22 KiB
22 KiB