mirror of
https://github.com/ollama/ollama.git
synced 2025-10-11 11:53:43 +02:00
template: add tool result compatibility (#11294)
This commit is contained in:
@@ -143,6 +143,7 @@ type Message struct {
|
||||
Thinking string `json:"thinking,omitempty"`
|
||||
Images []ImageData `json:"images,omitempty"`
|
||||
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
|
||||
ToolName string `json:"tool_name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Message) UnmarshalJSON(b []byte) error {
|
||||
|
Reference in New Issue
Block a user