Skip to content

Commit 8c017b4

Browse files
committed
Remove default max_tokens values from model constructors
Remove hardcoded max_tokens defaults from Claude and Nova model classes to prevent potential BC breaks when these values might change in future versions. Users should explicitly specify max_tokens if needed.
1 parent 22d7f9f commit 8c017b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Bridge/Anthropic/Claude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Claude extends Model
3636
*/
3737
public function __construct(
3838
string $name,
39-
array $options = ['max_tokens' => 1000],
39+
array $options = [],
4040
) {
4141
$capabilities = [
4242
Capability::INPUT_MESSAGES,

src/Bridge/Bedrock/Nova/Nova.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class Nova extends Model
2929
*/
3030
public function __construct(
3131
string $name,
32-
array $options = ['max_tokens' => 1000],
32+
array $options = [],
3333
) {
3434
$capabilities = [
3535
Capability::INPUT_MESSAGES,

0 commit comments

Comments
 (0)