1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +12:00

fix formatting

This commit is contained in:
Damodar Lohani 2023-08-04 02:17:02 +00:00
parent 45afea9175
commit 49085be4e4

View file

@ -58,7 +58,7 @@ App::post('/v1/console/assistant')
$query = json_encode(['prompt' => $query]);
$headers = ['accept: text/event-stream', 'authorization: ' . APP::getEnv('ASSISTANT_SECRET')];
$handleEvent = function($ch, $data) use ($response) {
$handleEvent = function ($ch, $data) use ($response) {
$response->chunk($data);
@ -92,5 +92,4 @@ App::post('/v1/console/assistant')
curl_close($ch);
$response->chunk('', true);
});