Skip to content

Commit a086203

Browse files
committed
minor #660 [Platform][Anthropic] CS fix (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Platform][Anthropic] CS fix | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- a87291e [Platform][Anthropic] CS fix
2 parents ddf56da + a87291e commit a086203

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/platform/src/Bridge/Anthropic/ModelClient.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ public function request(Model $model, array|string $payload, array $options = []
4747
$options['tool_choice'] = ['type' => 'auto'];
4848
}
4949

50-
if (
51-
isset($options['beta_features'])
52-
&& \is_array($options['beta_features'])
53-
&& !empty($options['beta_features'])
54-
) {
50+
if (isset($options['beta_features']) && \is_array($options['beta_features']) && !empty($options['beta_features'])) {
5551
$headers['anthropic-beta'] = implode(',', $options['beta_features']);
5652
unset($options['beta_features']);
5753
}

0 commit comments

Comments
 (0)