From 2fec923d2daf753df41b73c093c2ef71f1082e2f Mon Sep 17 00:00:00 2001 From: Mark Harnyk Date: Wed, 15 Jan 2025 15:03:33 +0100 Subject: [PATCH] feat: add Output field to FunctionCall struct - Added the `Output` field to the `FunctionCall` struct as described in the OpenAI API docs. - This field is optional and is of type `*string`. --- chat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat.go b/chat.go index fcaf79cf7..6181526f7 100644 --- a/chat.go +++ b/chat.go @@ -187,7 +187,8 @@ type ToolCall struct { type FunctionCall struct { Name string `json:"name,omitempty"` // call function with arguments in JSON format - Arguments string `json:"arguments,omitempty"` + Arguments string `json:"arguments,omitempty"` + Output *string `json:"output,omitempty"` } type ChatCompletionResponseFormatType string