Skip to content

Commit 7d5acf5

Browse files
authored
Merge pull request #18 from utopia-php/bump-fetch
Bump utopia-php/fetch version
2 parents 667da99 + 4cca41f commit 7d5acf5

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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",

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Agents/Adapter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/

src/Agents/Adapters/Anthropic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/Agents/Adapters/Deepseek.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/Agents/Adapters/Gemini.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/Agents/Adapters/OpenAI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/Agents/Adapters/Perplexity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/Agents/Adapters/XAI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)