fix: fix tool calls

This commit is contained in:
CaIon
2024-01-31 01:41:38 +08:00
parent 6768432989
commit 20d07d3fcc
2 changed files with 46 additions and 43 deletions
+5 -3
View File
@@ -13,9 +13,11 @@ import (
)
type Message struct {
Role string `json:"role"`
Content json.RawMessage `json:"content"`
Name *string `json:"name,omitempty"`
Role string `json:"role"`
Content json.RawMessage `json:"content"`
Name *string `json:"name,omitempty"`
ToolCalls any `json:"tool_calls,omitempty"`
ToolCallId string `json:"tool_call_id,omitempty"`
}
type MediaMessage struct {