We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 980b911 commit e79ff5cCopy full SHA for e79ff5c
src/Bridge/Anthropic/ModelClient.php
@@ -47,7 +47,7 @@ public function request(Model $model, array|string $payload, array $options = []
47
$options['tool_choice'] = ['type' => 'auto'];
48
}
49
50
- if (isset($options['beta_features']) && \is_array($options['beta_features']) && !empty($options['beta_features'])) {
+ if (isset($options['beta_features']) && \is_array($options['beta_features']) && \count($options['beta_features']) > 0) {
51
$headers['anthropic-beta'] = implode(',', $options['beta_features']);
52
unset($options['beta_features']);
53
0 commit comments