From 720377087fae943d15000d47c7c9ea0a214798b1 Mon Sep 17 00:00:00 2001 From: cem-unuvar <87916654+cem-unuvar@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:33:53 +0300 Subject: [PATCH] feat: added function call info to chat completions (#390) --- chat_stream.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chat_stream.go b/chat_stream.go index 9093bde..75aa685 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -8,8 +8,9 @@ import ( ) type ChatCompletionStreamChoiceDelta struct { - Content string `json:"content,omitempty"` - Role string `json:"role,omitempty"` + Content string `json:"content,omitempty"` + Role string `json:"role,omitempty"` + FunctionCall *FunctionCall `json:"function_call,omitempty"` } type ChatCompletionStreamChoice struct {