Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"require": {
"php": ">=8.3",
"utopia-php/fetch": "0.4.*"
"utopia-php/fetch": "0.5.*"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/Agents/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ abstract class Adapter
protected int $cacheReadInputTokens = 0;

/**
* Request timeout in seconds
* Request timeout in milliseconds
*
* @var int
*/
protected int $timeout = 90;
protected int $timeout = 90000; // 90 seconds

/**
* Get the adapter name
Expand Down Expand Up @@ -227,7 +227,7 @@ public function getTotalTokens(): int
}

/**
* Set timeout in seconds
* Set timeout in milliseconds
*
* @param int $timeout
* @return self
Expand All @@ -240,7 +240,7 @@ public function setTimeout(int $timeout): self
}

/**
* Get timeout in seconds
* Get timeout in milliseconds
*
* @return int
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/Anthropic.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(
string $model = self::MODEL_CLAUDE_3_HAIKU,
int $maxTokens = 1024,
float $temperature = 1.0,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
$this->apiKey = $apiKey;
$this->maxTokens = $maxTokens;
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/Deepseek.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(
string $model = self::MODEL_DEEPSEEK_CHAT,
int $maxTokens = 1024,
float $temperature = 1.0,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
$this->apiKey = $apiKey;
$this->maxTokens = $maxTokens;
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/Gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(
int $maxTokens = 1024,
float $temperature = 1.0,
?string $endpoint = null,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
$this->apiKey = $apiKey;
$this->maxTokens = $maxTokens;
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/OpenAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct(
int $maxTokens = 1024,
float $temperature = 1.0,
?string $endpoint = null,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
$this->apiKey = $apiKey;
$this->maxTokens = $maxTokens;
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/Perplexity.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
int $maxTokens = 1024,
float $temperature = 1.0,
?string $endpoint = null,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
parent::__construct(
$apiKey,
Expand Down
2 changes: 1 addition & 1 deletion src/Agents/Adapters/XAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(
int $maxTokens = 1024,
float $temperature = 1.0,
?string $endpoint = null,
int $timeout = 90
int $timeout = 90000 // 90 seconds
) {
parent::__construct(
$apiKey,
Expand Down
Loading