From 191353f5d0ef87f3f88889a4738d696b77ed1ede Mon Sep 17 00:00:00 2001 From: Xinecraft Date: Mon, 16 Dec 2024 16:59:40 +0530 Subject: [PATCH] more timeout --- app/Services/AiService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/AiService.php b/app/Services/AiService.php index f07c07a5..5d90e6b5 100644 --- a/app/Services/AiService.php +++ b/app/Services/AiService.php @@ -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;