From f20437c59595bba3240a25f30a70fefa7d2f0cee Mon Sep 17 00:00:00 2001 From: Ryan Skidmore Date: Mon, 19 Jun 2023 22:58:05 +0100 Subject: [PATCH] chat: rename isFunctionCall function to be more specific --- chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.go b/chat.go index 569f7025f..83151f8d2 100644 --- a/chat.go +++ b/chat.go @@ -60,7 +60,7 @@ type ChatCompletionRequest struct { FunctionCall any `json:"function_call,omitempty"` } -func checkFunctionCall(value any) bool { +func checkIsChatCompletionFunctionCall(value any) bool { if value == nil { return true } @@ -146,7 +146,7 @@ func (c *Client) CreateChatCompletion( return } - if !checkFunctionCall(request.FunctionCall) { + if !checkIsChatCompletionFunctionCall(request.FunctionCall) { err = ErrChatCompletionInvalidFunctionCall return }