Skip to content

Commit 8fd34fc

Browse files
committed
fix: bug
1 parent 0c81d55 commit 8fd34fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AI/AIProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function ($chunk, $data) use (&$responseText, $responseParser) {
420420
}
421421
);
422422
} else {
423-
$response = $client->chat()->create($requestData);
423+
$response = $client->createChatStream($requestData, null);
424424
$responseText = $response['choices'][0]['message']['content'];
425425
$responseParser->parse($responseText);
426426

0 commit comments

Comments
 (0)