Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
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 src/Anthropic/Platform/Anthropic.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public function __construct(
HttpClientInterface $httpClient,
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand Down
4 changes: 2 additions & 2 deletions src/OpenAI/Platform/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
private string $baseUrl,
private string $deployment,
private string $apiVersion,
private string $key,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand All @@ -29,7 +29,7 @@ protected function rawRequest(string $endpoint, array $body): ResponseInterface

return $this->httpClient->request('POST', $url, [
'headers' => [
'api-key' => $this->key,
'api-key' => $this->apiKey,
'Content-Type' => 'application/json',
],
'query' => ['api-version' => $this->apiVersion],
Expand Down
2 changes: 1 addition & 1 deletion src/OpenAI/Platform/OpenAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public function __construct(
HttpClientInterface $httpClient,
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
$this->httpClient = $httpClient instanceof EventSourceHttpClient ? $httpClient : new EventSourceHttpClient($httpClient);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Store/Azure/SearchStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public function __construct(
private HttpClientInterface $httpClient,
private string $endpointUrl,
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
private string $indexName,
private string $apiVersion,
private string $vectorFieldName = 'vector',
Expand Down
2 changes: 1 addition & 1 deletion src/Voyage/Platform/Voyage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
public function __construct(
private HttpClientInterface $httpClient,
private string $apiKey,
#[\SensitiveParameter] private string $apiKey,
) {
}

Expand Down