Skip to content

Commit 540e476

Browse files
committed
[Platform] Reformat model constructor parameters to single line
1 parent 8c017b4 commit 540e476

File tree

7 files changed

+14
-28
lines changed

7 files changed

+14
-28
lines changed

src/Bridge/Anthropic/Claude.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ class Claude extends Model
3434
/**
3535
* @param array<string, mixed> $options The default options for the model usage
3636
*/
37-
public function __construct(
38-
string $name,
39-
array $options = [],
40-
) {
37+
public function __construct(string $name, array $options = [])
38+
{
4139
$capabilities = [
4240
Capability::INPUT_MESSAGES,
4341
Capability::INPUT_IMAGE,

src/Bridge/Bedrock/Nova/Nova.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ final class Nova extends Model
2727
/**
2828
* @param array<string, mixed> $options The default options for the model usage
2929
*/
30-
public function __construct(
31-
string $name,
32-
array $options = [],
33-
) {
30+
public function __construct(string $name, array $options = [])
31+
{
3432
$capabilities = [
3533
Capability::INPUT_MESSAGES,
3634
Capability::OUTPUT_TEXT,

src/Bridge/ElevenLabs/ElevenLabs.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ final class ElevenLabs extends Model
3131
public const SCRIBE_V1 = 'scribe_v1';
3232
public const SCRIBE_V1_EXPERIMENTAL = 'scribe_v1_experimental';
3333

34-
public function __construct(
35-
string $name,
36-
array $options = [],
37-
) {
34+
public function __construct(string $name, array $options = [])
35+
{
3836
parent::__construct($name, [], $options);
3937
}
4038
}

src/Bridge/Mistral/Embeddings.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ final class Embeddings extends Model
2424
/**
2525
* @param array<string, mixed> $options
2626
*/
27-
public function __construct(
28-
string $name,
29-
array $options = [],
30-
) {
27+
public function __construct(string $name, array $options = [])
28+
{
3129
parent::__construct($name, [Capability::INPUT_MULTIPLE], $options);
3230
}
3331
}

src/Bridge/Mistral/Mistral.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ final class Mistral extends Model
3535
/**
3636
* @param array<string, mixed> $options
3737
*/
38-
public function __construct(
39-
string $name,
40-
array $options = [],
41-
) {
38+
public function __construct(string $name, array $options = [])
39+
{
4240
$capabilities = [
4341
Capability::INPUT_MESSAGES,
4442
Capability::OUTPUT_TEXT,

src/Bridge/OpenAi/Gpt.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ class Gpt extends Model
7373
/**
7474
* @param array<mixed> $options The default options for the model usage
7575
*/
76-
public function __construct(
77-
string $name,
78-
array $options = [],
79-
) {
76+
public function __construct(string $name, array $options = [])
77+
{
8078
$capabilities = [
8179
Capability::INPUT_MESSAGES,
8280
Capability::OUTPUT_TEXT,

src/Bridge/Perplexity/Perplexity.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ final class Perplexity extends Model
2828
/**
2929
* @param array<string, mixed> $options
3030
*/
31-
public function __construct(
32-
string $name,
33-
array $options = [],
34-
) {
31+
public function __construct(string $name, array $options = [])
32+
{
3533
$capabilities = [
3634
Capability::INPUT_MESSAGES,
3735
Capability::INPUT_PDF,

0 commit comments

Comments
 (0)