fix: fix tool calls

This commit is contained in:
CaIon committed 2024-01-31 01:41:38 +08:00
1 parent 6768432989
commit 20d07d3fcc
2 files changed
+46 -43

No files matched your search

+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 {