Skip to content

Commit 27e489e

Browse files
auto apply header
1 parent 8949d87 commit 27e489e

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

libs/providers/langchain-anthropic/src/tools/tests/webFetch.int.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ const createModel = () =>
1313
new ChatAnthropic({
1414
model: "claude-sonnet-4-5",
1515
temperature: 0,
16-
clientOptions: {
17-
defaultHeaders: {
18-
"anthropic-beta": "web-fetch-2025-09-10",
19-
},
20-
},
2116
});
2217

2318
describe("Anthropic Web Fetch Tool Integration Tests", () => {

libs/providers/langchain-anthropic/src/tools/webFetch.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ interface WebFetch20250910Options {
5757
*
5858
* const model = new ChatAnthropic({
5959
* model: "claude-sonnet-4-5-20250929",
60-
* clientOptions: {
61-
* defaultHeaders: {
62-
* "anthropic-beta": "web-fetch-2025-09-10",
63-
* },
64-
* },
6560
* });
6661
*
6762
* // Basic usage - fetch content from a URL

libs/providers/langchain-anthropic/src/utils/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ export const ANTHROPIC_TOOL_BETAS: Record<string, string> = {
5454
tool_search_tool_regex_20251119: "advanced-tool-use-2025-11-20",
5555
tool_search_tool_bm25_20251119: "advanced-tool-use-2025-11-20",
5656
memory_20250818: "context-management-2025-06-27",
57+
web_fetch_20250910: "web-fetch-2025-09-10",
5758
};

0 commit comments

Comments
 (0)