Skip to content

Commit

Permalink
more timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 16, 2024
1 parent d39d83e commit 191353f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/AiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function chainPrompt(
->withMaxTokens($maxTokens)
->withMaxSteps($maxSteps)
->withTools($tools)
->withClientOptions(['timeout' => 120]) // Some model reply very slow, so we need to increase timeout.
->generate();

return $reponse;
Expand Down

0 comments on commit 191353f

Please sign in to comment.