Skip to content

Commit 44ffc51

Browse files
use object ref instead of array ref
1 parent 071bffb commit 44ffc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/ChatGPT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ protected function handle_functions( stdClass $message, bool $raw_function_respo
360360
if( isset( $message->tool_calls ) ) {
361361
$function_calls = array_filter(
362362
$message->tool_calls,
363-
fn( $tool_call ) => $tool_call["type"] === "function"
363+
fn( $tool_call ) => $tool_call->type === "function"
364364
);
365365

366366
if( $raw_function_response ) {

0 commit comments

Comments
 (0)