File tree Expand file tree Collapse file tree 9 files changed +19
-19
lines changed
Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 2828 },
2929 "require" : {
3030 "php" : " >=8.3" ,
31- "utopia-php/fetch" : " 0.4 .*"
31+ "utopia-php/fetch" : " 0.5 .*"
3232 },
3333 "require-dev" : {
3434 "phpunit/phpunit" : " ^9.3" ,
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ abstract class Adapter
4040 protected int $ cacheReadInputTokens = 0 ;
4141
4242 /**
43- * Request timeout in seconds
43+ * Request timeout in milliseconds
4444 *
4545 * @var int
4646 */
47- protected int $ timeout = 90 ;
47+ protected int $ timeout = 90000 ; // 90 seconds
4848
4949 /**
5050 * Get the adapter name
@@ -227,7 +227,7 @@ public function getTotalTokens(): int
227227 }
228228
229229 /**
230- * Set timeout in seconds
230+ * Set timeout in milliseconds
231231 *
232232 * @param int $timeout
233233 * @return self
@@ -240,7 +240,7 @@ public function setTimeout(int $timeout): self
240240 }
241241
242242 /**
243- * Get timeout in seconds
243+ * Get timeout in milliseconds
244244 *
245245 * @return int
246246 */
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function __construct(
9292 string $ model = self ::MODEL_CLAUDE_3_HAIKU ,
9393 int $ maxTokens = 1024 ,
9494 float $ temperature = 1.0 ,
95- int $ timeout = 90
95+ int $ timeout = 90000 // 90 seconds
9696 ) {
9797 $ this ->apiKey = $ apiKey ;
9898 $ this ->maxTokens = $ maxTokens ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function __construct(
6161 string $ model = self ::MODEL_DEEPSEEK_CHAT ,
6262 int $ maxTokens = 1024 ,
6363 float $ temperature = 1.0 ,
64- int $ timeout = 90
64+ int $ timeout = 90000 // 90 seconds
6565 ) {
6666 $ this ->apiKey = $ apiKey ;
6767 $ this ->maxTokens = $ maxTokens ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function __construct(
8383 int $ maxTokens = 1024 ,
8484 float $ temperature = 1.0 ,
8585 ?string $ endpoint = null ,
86- int $ timeout = 90
86+ int $ timeout = 90000 // 90 seconds
8787 ) {
8888 $ this ->apiKey = $ apiKey ;
8989 $ this ->maxTokens = $ maxTokens ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function __construct(
9494 int $ maxTokens = 1024 ,
9595 float $ temperature = 1.0 ,
9696 ?string $ endpoint = null ,
97- int $ timeout = 90
97+ int $ timeout = 90000 // 90 seconds
9898 ) {
9999 $ this ->apiKey = $ apiKey ;
100100 $ this ->maxTokens = $ maxTokens ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function __construct(
5454 int $ maxTokens = 1024 ,
5555 float $ temperature = 1.0 ,
5656 ?string $ endpoint = null ,
57- int $ timeout = 90
57+ int $ timeout = 90000 // 90 seconds
5858 ) {
5959 parent ::__construct (
6060 $ apiKey ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function __construct(
3939 int $ maxTokens = 1024 ,
4040 float $ temperature = 1.0 ,
4141 ?string $ endpoint = null ,
42- int $ timeout = 90
42+ int $ timeout = 90000 // 90 seconds
4343 ) {
4444 parent ::__construct (
4545 $ apiKey ,
You can’t perform that action at this time.
0 commit comments