From 47c963016920b2914b336e1c71b9feca5a818954 Mon Sep 17 00:00:00 2001 From: Martial BE Date: Wed, 3 Jan 2024 18:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Index=20is=20required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/chat.go b/types/chat.go index cf87d787..f746dbad 100644 --- a/types/chat.go +++ b/types/chat.go @@ -12,9 +12,9 @@ type ChatCompletionToolCallsFunction struct { type ChatCompletionToolCalls struct { Id string `json:"id"` - Index int `json:"index,omitempty"` Type string `json:"type"` Function ChatCompletionToolCallsFunction `json:"function"` + Index int `json:"index"` } type ChatCompletionMessage struct {