From 41037783bc7668998900248ed697b90ec36c3f09 Mon Sep 17 00:00:00 2001 From: Guillaume Dussault <146769929+guillaume-dussault@users.noreply.github.com> Date: Mon, 26 Feb 2024 03:48:53 -0500 Subject: [PATCH] fix: when no Assistant Tools are specified, an empty list should be sent (#669) --- assistant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assistant.go b/assistant.go index bd33583..7a7a765 100644 --- a/assistant.go +++ b/assistant.go @@ -46,7 +46,7 @@ type AssistantRequest struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Instructions *string `json:"instructions,omitempty"` - Tools []AssistantTool `json:"tools,omitempty"` + Tools []AssistantTool `json:"tools"` FileIDs []string `json:"file_ids,omitempty"` Metadata map[string]any `json:"metadata,omitempty"` }