Skip to content

Commit

Permalink
moving computers
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 26, 2023
1 parent 353e901 commit 6a7da32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/OpenAi/ChatClient.php
Expand Up @@ -44,7 +44,10 @@ public function chat(array $messages): Response
];

if ($this->hasFunctions()) {
$request['functions'] = $this->getFunctions();
$function = $this->getFunctions();
if (! empty($function)) {
$request['functions'] = $function;
}
}

$response = OpenAI::chat()->create($request);
Expand Down

0 comments on commit 6a7da32

Please sign in to comment.