fix formatting
This commit is contained in:
parent
45afea9175
commit
49085be4e4
1 changed files with 1 additions and 2 deletions
|
@ -58,7 +58,7 @@ App::post('/v1/console/assistant')
|
||||||
$query = json_encode(['prompt' => $query]);
|
$query = json_encode(['prompt' => $query]);
|
||||||
|
|
||||||
$headers = ['accept: text/event-stream', 'authorization: ' . APP::getEnv('ASSISTANT_SECRET')];
|
$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);
|
$response->chunk($data);
|
||||||
|
|
||||||
|
@ -92,5 +92,4 @@ App::post('/v1/console/assistant')
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
|
||||||
$response->chunk('', true);
|
$response->chunk('', true);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue