Skip to content

Commit 22d7f9f

Browse files
committed
[Platform] Remove default model names from constructor parameters
1 parent 074cee2 commit 22d7f9f

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

src/Bridge/Anthropic/Claude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Claude extends Model
3535
* @param array<string, mixed> $options The default options for the model usage
3636
*/
3737
public function __construct(
38-
string $name = self::SONNET_37,
38+
string $name,
3939
array $options = ['max_tokens' => 1000],
4040
) {
4141
$capabilities = [

src/Bridge/Bedrock/Nova/Nova.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Nova extends Model
2828
* @param array<string, mixed> $options The default options for the model usage
2929
*/
3030
public function __construct(
31-
string $name = self::PRO,
31+
string $name,
3232
array $options = ['max_tokens' => 1000],
3333
) {
3434
$capabilities = [

src/Bridge/ElevenLabs/ElevenLabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class ElevenLabs extends Model
3232
public const SCRIBE_V1_EXPERIMENTAL = 'scribe_v1_experimental';
3333

3434
public function __construct(
35-
string $name = self::ELEVEN_MULTILINGUAL_V2,
35+
string $name,
3636
array $options = [],
3737
) {
3838
parent::__construct($name, [], $options);

src/Bridge/Mistral/Embeddings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class Embeddings extends Model
2525
* @param array<string, mixed> $options
2626
*/
2727
public function __construct(
28-
string $name = self::MISTRAL_EMBED,
28+
string $name,
2929
array $options = [],
3030
) {
3131
parent::__construct($name, [Capability::INPUT_MULTIPLE], $options);

src/Bridge/Mistral/Mistral.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class Mistral extends Model
3636
* @param array<string, mixed> $options
3737
*/
3838
public function __construct(
39-
string $name = self::MISTRAL_LARGE,
39+
string $name,
4040
array $options = [],
4141
) {
4242
$capabilities = [

src/Bridge/OpenAi/Gpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Gpt extends Model
7474
* @param array<mixed> $options The default options for the model usage
7575
*/
7676
public function __construct(
77-
string $name = self::GPT_4O,
77+
string $name,
7878
array $options = [],
7979
) {
8080
$capabilities = [

src/Bridge/Perplexity/Perplexity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class Perplexity extends Model
2929
* @param array<string, mixed> $options
3030
*/
3131
public function __construct(
32-
string $name = self::SONAR,
32+
string $name,
3333
array $options = [],
3434
) {
3535
$capabilities = [

tests/Bridge/Anthropic/Contract/AssistantMessageNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testSupportsNormalization()
3636
$normalizer = new AssistantMessageNormalizer();
3737

3838
$this->assertTrue($normalizer->supportsNormalization(new AssistantMessage('Hello'), context: [
39-
Contract::CONTEXT_MODEL => new Claude(),
39+
Contract::CONTEXT_MODEL => new Claude(Claude::SONNET_37),
4040
]));
4141
$this->assertFalse($normalizer->supportsNormalization('not an assistant message'));
4242
}

tests/Bridge/Anthropic/ModelClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ModelClientTest extends TestCase
2727

2828
protected function setUp(): void
2929
{
30-
$this->model = new Claude();
30+
$this->model = new Claude(Claude::SONNET_37);
3131
}
3232

3333
public function testAnthropicBetaHeaderIsSetWithSingleBetaFeature()

tests/Bridge/Bedrock/Nova/ContractTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testConvert(MessageBag $bag, array $expected)
5555
new UserMessageNormalizer(),
5656
);
5757

58-
$this->assertEquals($expected, $contract->createRequestPayload(new Nova(), $bag));
58+
$this->assertEquals($expected, $contract->createRequestPayload(new Nova(Nova::PRO), $bag));
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)