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
3 changes: 1 addition & 2 deletions src/agent/src/Toolbox/Tool/Brave.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
*/
public function __construct(
private HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
private array $options = [],
) {
}
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Anthropic/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
final readonly class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Azure/OpenAi/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public static function create(
string $baseUrl,
string $deployment,
string $apiVersion,
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Gemini/Embeddings/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
{
public function __construct(
private HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
}

Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Gemini/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
final readonly class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/HuggingFace/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
public function __construct(
HttpClientInterface $httpClient,
private string $provider,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/HuggingFace/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
final readonly class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
string $provider = Provider::HF_INFERENCE,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

public function __construct(
HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Mistral/Llm/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

public function __construct(
HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenAi/DallE/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
{
public function __construct(
private HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
if ('' === $apiKey) {
throw new InvalidArgumentException('The API key must not be empty.');
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenAi/Embeddings/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
{
public function __construct(
private HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
if ('' === $apiKey) {
throw new InvalidArgumentException('The API key must not be empty.');
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenAi/Gpt/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

public function __construct(
HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
if ('' === $apiKey) {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenAi/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
final readonly class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenAi/Whisper/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
{
public function __construct(
private HttpClientInterface $httpClient,
#[\SensitiveParameter]
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
if ('' === $apiKey) {
throw new InvalidArgumentException('The API key must not be empty.');
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/OpenRouter/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
final class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Replicate/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
final class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down
3 changes: 1 addition & 2 deletions src/platform/src/Bridge/Voyage/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
final class PlatformFactory
{
public static function create(
#[\SensitiveParameter]
string $apiKey,
#[\SensitiveParameter] string $apiKey,
?HttpClientInterface $httpClient = null,
?Contract $contract = null,
): Platform {
Expand Down