Skip to content

Commit df13f8c

Browse files
yamitzkydosco
andauthored
fix(anthropic): add anthropic-beta header for web-search on Vertex AI (#457)
* fix(anthropic): add anthropic-beta header for web-search on Vertex AI * Update 'anthropic-beta' header value --------- Co-authored-by: Spacy <832235+dosco@users.noreply.github.com>
1 parent 8c0c13f commit df13f8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ax/ai/anthropic/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ export class AxAIAnthropic<TModelKey = string> extends AxBaseAI<
884884
apiURL = `https://${tld}.googleapis.com/v1/projects/${projectId}/locations/${region}/publishers/anthropic/`;
885885
headers = async () => ({
886886
Authorization: `Bearer ${await apiKey()}`,
887+
'anthropic-beta': 'structured-outputs-2025-11-13, web-search-2025-03-05',
887888
});
888889
} else {
889890
if (!apiKey) {

0 commit comments

Comments
 (0)