File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ static function () {
150150 ]
151151 );
152152
153- \WP_CLI ::log ( "Making request... " . print_r ( $ contents , true ) );
153+ // \WP_CLI::log( "Making request..." . print_r( $contents, true ) );
154154
155155 $ candidates = $ service
156156 ->get_model (
@@ -182,6 +182,11 @@ static function () {
182182 }
183183
184184 $ function_result = [ 'result ' => $ function_result ];
185+
186+ $ parts = new Parts ();
187+ $ parts ->add_function_call_part ( $ part ->get_id (), $ part ->get_name (), $ part ->get_args () );
188+ $ new_contents [] = new Content ( Content_Role::MODEL , $ parts );
189+
185190 $ parts = new Parts ();
186191 $ parts ->add_function_response_part ( $ part ->get_id (),$ part ->get_name (), $ function_result );
187192 $ content = new Content ( Content_Role::USER , $ parts );
You can’t perform that action at this time.
0 commit comments