Skip to content

Commit

Permalink
格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Feb 28, 2024
1 parent 6ddc2bf commit cfacf7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/Module/OpenAI/Client/SwooleAI/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function chat(array $params, ?int &$inputTokens = null, ?int &$outputToke
{
$contents = '';
// @phpstan-ignore-next-line
$this->client->chat($params, function ($curlInfo, $data) use ($channel, $params, &$outputTokens, &$contents) {
$this->client->chat($params, function ($curlInfo, $data) use ($channel, &$outputTokens, &$contents) {
// 请求结束
if ('[DONE]' === $data)
{
Expand All @@ -63,7 +63,7 @@ public function chat(array $params, ?int &$inputTokens = null, ?int &$outputToke
{
if (null !== $chunk && '' !== $chunk)
{
$contents.=$chunk;
$contents .= $chunk;
}
$channel->push([
'delta' => [
Expand Down

0 comments on commit cfacf7b

Please sign in to comment.