@ai-sdk/anthropic 3.0.23 → 3.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 3.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 0bb9bcd: feat(provider/anthropic): add computer_20251124 tool for claude opus 4.5
8
+
9
+ ## 3.0.24
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [462ad00]
14
+ - @ai-sdk/provider-utils@4.0.10
15
+
3
16
  ## 3.0.23
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -400,6 +400,36 @@ declare const anthropicTools: {
400
400
  displayHeightPx: number;
401
401
  displayNumber?: number;
402
402
  }>;
403
+ /**
404
+ * Claude can interact with computer environments through the computer use tool, which
405
+ * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
406
+ *
407
+ * This version adds the zoom action for detailed screen region inspection.
408
+ *
409
+ * Image results are supported.
410
+ *
411
+ * Supported models: Claude Opus 4.5
412
+ *
413
+ * @param displayWidthPx - The width of the display being controlled by the model in pixels.
414
+ * @param displayHeightPx - The height of the display being controlled by the model in pixels.
415
+ * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
416
+ * @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.
417
+ */
418
+ computer_20251124: _ai_sdk_provider_utils.ProviderToolFactory<{
419
+ action: "key" | "hold_key" | "type" | "cursor_position" | "mouse_move" | "left_mouse_down" | "left_mouse_up" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "triple_click" | "scroll" | "wait" | "screenshot" | "zoom";
420
+ coordinate?: [number, number];
421
+ duration?: number;
422
+ region?: [number, number, number, number];
423
+ scroll_amount?: number;
424
+ scroll_direction?: "up" | "down" | "left" | "right";
425
+ start_coordinate?: [number, number];
426
+ text?: string;
427
+ }, {
428
+ displayWidthPx: number;
429
+ displayHeightPx: number;
430
+ displayNumber?: number;
431
+ enableZoom?: boolean;
432
+ }>;
403
433
  /**
404
434
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
405
435
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -599,27 +629,7 @@ declare const anthropicTools: {
599
629
  userLocation?: {
600
630
  type: "approximate";
601
631
  city?: string;
602
- region
603
- /**
604
- * Claude can interact with computer environments through the computer use tool, which
605
- * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
606
- *
607
- * Image results are supported.
608
- *
609
- * @param displayWidthPx - The width of the display being controlled by the model in pixels.
610
- * @param displayHeightPx - The height of the display being controlled by the model in pixels.
611
- * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
612
- */
613
- ? /**
614
- * Claude can interact with computer environments through the computer use tool, which
615
- * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
616
- *
617
- * Image results are supported.
618
- *
619
- * @param displayWidthPx - The width of the display being controlled by the model in pixels.
620
- * @param displayHeightPx - The height of the display being controlled by the model in pixels.
621
- * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
622
- */: string;
632
+ region?: string;
623
633
  country?: string;
624
634
  timezone?: string;
625
635
  };
package/dist/index.d.ts CHANGED
@@ -400,6 +400,36 @@ declare const anthropicTools: {
400
400
  displayHeightPx: number;
401
401
  displayNumber?: number;
402
402
  }>;
403
+ /**
404
+ * Claude can interact with computer environments through the computer use tool, which
405
+ * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
406
+ *
407
+ * This version adds the zoom action for detailed screen region inspection.
408
+ *
409
+ * Image results are supported.
410
+ *
411
+ * Supported models: Claude Opus 4.5
412
+ *
413
+ * @param displayWidthPx - The width of the display being controlled by the model in pixels.
414
+ * @param displayHeightPx - The height of the display being controlled by the model in pixels.
415
+ * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
416
+ * @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.
417
+ */
418
+ computer_20251124: _ai_sdk_provider_utils.ProviderToolFactory<{
419
+ action: "key" | "hold_key" | "type" | "cursor_position" | "mouse_move" | "left_mouse_down" | "left_mouse_up" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "triple_click" | "scroll" | "wait" | "screenshot" | "zoom";
420
+ coordinate?: [number, number];
421
+ duration?: number;
422
+ region?: [number, number, number, number];
423
+ scroll_amount?: number;
424
+ scroll_direction?: "up" | "down" | "left" | "right";
425
+ start_coordinate?: [number, number];
426
+ text?: string;
427
+ }, {
428
+ displayWidthPx: number;
429
+ displayHeightPx: number;
430
+ displayNumber?: number;
431
+ enableZoom?: boolean;
432
+ }>;
403
433
  /**
404
434
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
405
435
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -599,27 +629,7 @@ declare const anthropicTools: {
599
629
  userLocation?: {
600
630
  type: "approximate";
601
631
  city?: string;
602
- region
603
- /**
604
- * Claude can interact with computer environments through the computer use tool, which
605
- * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
606
- *
607
- * Image results are supported.
608
- *
609
- * @param displayWidthPx - The width of the display being controlled by the model in pixels.
610
- * @param displayHeightPx - The height of the display being controlled by the model in pixels.
611
- * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
612
- */
613
- ? /**
614
- * Claude can interact with computer environments through the computer use tool, which
615
- * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
616
- *
617
- * Image results are supported.
618
- *
619
- * @param displayWidthPx - The width of the display being controlled by the model in pixels.
620
- * @param displayHeightPx - The height of the display being controlled by the model in pixels.
621
- * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
622
- */: string;
632
+ region?: string;
623
633
  country?: string;
624
634
  timezone?: string;
625
635
  };
package/dist/index.js CHANGED
@@ -29,10 +29,10 @@ module.exports = __toCommonJS(src_exports);
29
29
 
30
30
  // src/anthropic-provider.ts
31
31
  var import_provider4 = require("@ai-sdk/provider");
32
- var import_provider_utils22 = require("@ai-sdk/provider-utils");
32
+ var import_provider_utils23 = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "3.0.23" : "0.0.0-test";
35
+ var VERSION = true ? "3.0.25" : "0.0.0-test";
36
36
 
37
37
  // src/anthropic-messages-language-model.ts
38
38
  var import_provider3 = require("@ai-sdk/provider");
@@ -1120,6 +1120,19 @@ async function prepareTools({
1120
1120
  });
1121
1121
  break;
1122
1122
  }
1123
+ case "anthropic.computer_20251124": {
1124
+ betas.add("computer-use-2025-11-24");
1125
+ anthropicTools2.push({
1126
+ name: "computer",
1127
+ type: "computer_20251124",
1128
+ display_width_px: tool.args.displayWidthPx,
1129
+ display_height_px: tool.args.displayHeightPx,
1130
+ display_number: tool.args.displayNumber,
1131
+ enable_zoom: tool.args.enableZoom,
1132
+ cache_control: void 0
1133
+ });
1134
+ break;
1135
+ }
1123
1136
  case "anthropic.computer_20241022": {
1124
1137
  betas.add("computer-use-2024-10-22");
1125
1138
  anthropicTools2.push({
@@ -4003,76 +4016,100 @@ var computer_20250124 = (0, import_provider_utils16.createProviderToolFactory)({
4003
4016
  inputSchema: computer_20250124InputSchema
4004
4017
  });
4005
4018
 
4006
- // src/tool/memory_20250818.ts
4019
+ // src/tool/computer_20251124.ts
4007
4020
  var import_provider_utils17 = require("@ai-sdk/provider-utils");
4008
4021
  var import_v414 = require("zod/v4");
4009
- var memory_20250818InputSchema = (0, import_provider_utils17.lazySchema)(
4022
+ var computer_20251124InputSchema = (0, import_provider_utils17.lazySchema)(
4010
4023
  () => (0, import_provider_utils17.zodSchema)(
4011
- import_v414.z.discriminatedUnion("command", [
4012
- import_v414.z.object({
4013
- command: import_v414.z.literal("view"),
4014
- path: import_v414.z.string(),
4015
- view_range: import_v414.z.tuple([import_v414.z.number(), import_v414.z.number()]).optional()
4024
+ import_v414.z.object({
4025
+ action: import_v414.z.enum([
4026
+ "key",
4027
+ "hold_key",
4028
+ "type",
4029
+ "cursor_position",
4030
+ "mouse_move",
4031
+ "left_mouse_down",
4032
+ "left_mouse_up",
4033
+ "left_click",
4034
+ "left_click_drag",
4035
+ "right_click",
4036
+ "middle_click",
4037
+ "double_click",
4038
+ "triple_click",
4039
+ "scroll",
4040
+ "wait",
4041
+ "screenshot",
4042
+ "zoom"
4043
+ ]),
4044
+ coordinate: import_v414.z.tuple([import_v414.z.number().int(), import_v414.z.number().int()]).optional(),
4045
+ duration: import_v414.z.number().optional(),
4046
+ region: import_v414.z.tuple([
4047
+ import_v414.z.number().int(),
4048
+ import_v414.z.number().int(),
4049
+ import_v414.z.number().int(),
4050
+ import_v414.z.number().int()
4051
+ ]).optional(),
4052
+ scroll_amount: import_v414.z.number().optional(),
4053
+ scroll_direction: import_v414.z.enum(["up", "down", "left", "right"]).optional(),
4054
+ start_coordinate: import_v414.z.tuple([import_v414.z.number().int(), import_v414.z.number().int()]).optional(),
4055
+ text: import_v414.z.string().optional()
4056
+ })
4057
+ )
4058
+ );
4059
+ var computer_20251124 = (0, import_provider_utils17.createProviderToolFactory)({
4060
+ id: "anthropic.computer_20251124",
4061
+ inputSchema: computer_20251124InputSchema
4062
+ });
4063
+
4064
+ // src/tool/memory_20250818.ts
4065
+ var import_provider_utils18 = require("@ai-sdk/provider-utils");
4066
+ var import_v415 = require("zod/v4");
4067
+ var memory_20250818InputSchema = (0, import_provider_utils18.lazySchema)(
4068
+ () => (0, import_provider_utils18.zodSchema)(
4069
+ import_v415.z.discriminatedUnion("command", [
4070
+ import_v415.z.object({
4071
+ command: import_v415.z.literal("view"),
4072
+ path: import_v415.z.string(),
4073
+ view_range: import_v415.z.tuple([import_v415.z.number(), import_v415.z.number()]).optional()
4016
4074
  }),
4017
- import_v414.z.object({
4018
- command: import_v414.z.literal("create"),
4019
- path: import_v414.z.string(),
4020
- file_text: import_v414.z.string()
4075
+ import_v415.z.object({
4076
+ command: import_v415.z.literal("create"),
4077
+ path: import_v415.z.string(),
4078
+ file_text: import_v415.z.string()
4021
4079
  }),
4022
- import_v414.z.object({
4023
- command: import_v414.z.literal("str_replace"),
4024
- path: import_v414.z.string(),
4025
- old_str: import_v414.z.string(),
4026
- new_str: import_v414.z.string()
4080
+ import_v415.z.object({
4081
+ command: import_v415.z.literal("str_replace"),
4082
+ path: import_v415.z.string(),
4083
+ old_str: import_v415.z.string(),
4084
+ new_str: import_v415.z.string()
4027
4085
  }),
4028
- import_v414.z.object({
4029
- command: import_v414.z.literal("insert"),
4030
- path: import_v414.z.string(),
4031
- insert_line: import_v414.z.number(),
4032
- insert_text: import_v414.z.string()
4086
+ import_v415.z.object({
4087
+ command: import_v415.z.literal("insert"),
4088
+ path: import_v415.z.string(),
4089
+ insert_line: import_v415.z.number(),
4090
+ insert_text: import_v415.z.string()
4033
4091
  }),
4034
- import_v414.z.object({
4035
- command: import_v414.z.literal("delete"),
4036
- path: import_v414.z.string()
4092
+ import_v415.z.object({
4093
+ command: import_v415.z.literal("delete"),
4094
+ path: import_v415.z.string()
4037
4095
  }),
4038
- import_v414.z.object({
4039
- command: import_v414.z.literal("rename"),
4040
- old_path: import_v414.z.string(),
4041
- new_path: import_v414.z.string()
4096
+ import_v415.z.object({
4097
+ command: import_v415.z.literal("rename"),
4098
+ old_path: import_v415.z.string(),
4099
+ new_path: import_v415.z.string()
4042
4100
  })
4043
4101
  ])
4044
4102
  )
4045
4103
  );
4046
- var memory_20250818 = (0, import_provider_utils17.createProviderToolFactory)({
4104
+ var memory_20250818 = (0, import_provider_utils18.createProviderToolFactory)({
4047
4105
  id: "anthropic.memory_20250818",
4048
4106
  inputSchema: memory_20250818InputSchema
4049
4107
  });
4050
4108
 
4051
4109
  // src/tool/text-editor_20241022.ts
4052
- var import_provider_utils18 = require("@ai-sdk/provider-utils");
4053
- var import_v415 = require("zod/v4");
4054
- var textEditor_20241022InputSchema = (0, import_provider_utils18.lazySchema)(
4055
- () => (0, import_provider_utils18.zodSchema)(
4056
- import_v415.z.object({
4057
- command: import_v415.z.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
4058
- path: import_v415.z.string(),
4059
- file_text: import_v415.z.string().optional(),
4060
- insert_line: import_v415.z.number().int().optional(),
4061
- new_str: import_v415.z.string().optional(),
4062
- old_str: import_v415.z.string().optional(),
4063
- view_range: import_v415.z.array(import_v415.z.number().int()).optional()
4064
- })
4065
- )
4066
- );
4067
- var textEditor_20241022 = (0, import_provider_utils18.createProviderToolFactory)({
4068
- id: "anthropic.text_editor_20241022",
4069
- inputSchema: textEditor_20241022InputSchema
4070
- });
4071
-
4072
- // src/tool/text-editor_20250124.ts
4073
4110
  var import_provider_utils19 = require("@ai-sdk/provider-utils");
4074
4111
  var import_v416 = require("zod/v4");
4075
- var textEditor_20250124InputSchema = (0, import_provider_utils19.lazySchema)(
4112
+ var textEditor_20241022InputSchema = (0, import_provider_utils19.lazySchema)(
4076
4113
  () => (0, import_provider_utils19.zodSchema)(
4077
4114
  import_v416.z.object({
4078
4115
  command: import_v416.z.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
@@ -4085,18 +4122,18 @@ var textEditor_20250124InputSchema = (0, import_provider_utils19.lazySchema)(
4085
4122
  })
4086
4123
  )
4087
4124
  );
4088
- var textEditor_20250124 = (0, import_provider_utils19.createProviderToolFactory)({
4089
- id: "anthropic.text_editor_20250124",
4090
- inputSchema: textEditor_20250124InputSchema
4125
+ var textEditor_20241022 = (0, import_provider_utils19.createProviderToolFactory)({
4126
+ id: "anthropic.text_editor_20241022",
4127
+ inputSchema: textEditor_20241022InputSchema
4091
4128
  });
4092
4129
 
4093
- // src/tool/text-editor_20250429.ts
4130
+ // src/tool/text-editor_20250124.ts
4094
4131
  var import_provider_utils20 = require("@ai-sdk/provider-utils");
4095
4132
  var import_v417 = require("zod/v4");
4096
- var textEditor_20250429InputSchema = (0, import_provider_utils20.lazySchema)(
4133
+ var textEditor_20250124InputSchema = (0, import_provider_utils20.lazySchema)(
4097
4134
  () => (0, import_provider_utils20.zodSchema)(
4098
4135
  import_v417.z.object({
4099
- command: import_v417.z.enum(["view", "create", "str_replace", "insert"]),
4136
+ command: import_v417.z.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
4100
4137
  path: import_v417.z.string(),
4101
4138
  file_text: import_v417.z.string().optional(),
4102
4139
  insert_line: import_v417.z.number().int().optional(),
@@ -4106,40 +4143,61 @@ var textEditor_20250429InputSchema = (0, import_provider_utils20.lazySchema)(
4106
4143
  })
4107
4144
  )
4108
4145
  );
4109
- var textEditor_20250429 = (0, import_provider_utils20.createProviderToolFactory)({
4110
- id: "anthropic.text_editor_20250429",
4111
- inputSchema: textEditor_20250429InputSchema
4146
+ var textEditor_20250124 = (0, import_provider_utils20.createProviderToolFactory)({
4147
+ id: "anthropic.text_editor_20250124",
4148
+ inputSchema: textEditor_20250124InputSchema
4112
4149
  });
4113
4150
 
4114
- // src/tool/tool-search-bm25_20251119.ts
4151
+ // src/tool/text-editor_20250429.ts
4115
4152
  var import_provider_utils21 = require("@ai-sdk/provider-utils");
4116
4153
  var import_v418 = require("zod/v4");
4117
- var toolSearchBm25_20251119OutputSchema = (0, import_provider_utils21.lazySchema)(
4154
+ var textEditor_20250429InputSchema = (0, import_provider_utils21.lazySchema)(
4118
4155
  () => (0, import_provider_utils21.zodSchema)(
4119
- import_v418.z.array(
4120
- import_v418.z.object({
4121
- type: import_v418.z.literal("tool_reference"),
4122
- toolName: import_v418.z.string()
4156
+ import_v418.z.object({
4157
+ command: import_v418.z.enum(["view", "create", "str_replace", "insert"]),
4158
+ path: import_v418.z.string(),
4159
+ file_text: import_v418.z.string().optional(),
4160
+ insert_line: import_v418.z.number().int().optional(),
4161
+ new_str: import_v418.z.string().optional(),
4162
+ old_str: import_v418.z.string().optional(),
4163
+ view_range: import_v418.z.array(import_v418.z.number().int()).optional()
4164
+ })
4165
+ )
4166
+ );
4167
+ var textEditor_20250429 = (0, import_provider_utils21.createProviderToolFactory)({
4168
+ id: "anthropic.text_editor_20250429",
4169
+ inputSchema: textEditor_20250429InputSchema
4170
+ });
4171
+
4172
+ // src/tool/tool-search-bm25_20251119.ts
4173
+ var import_provider_utils22 = require("@ai-sdk/provider-utils");
4174
+ var import_v419 = require("zod/v4");
4175
+ var toolSearchBm25_20251119OutputSchema = (0, import_provider_utils22.lazySchema)(
4176
+ () => (0, import_provider_utils22.zodSchema)(
4177
+ import_v419.z.array(
4178
+ import_v419.z.object({
4179
+ type: import_v419.z.literal("tool_reference"),
4180
+ toolName: import_v419.z.string()
4123
4181
  })
4124
4182
  )
4125
4183
  )
4126
4184
  );
4127
- var toolSearchBm25_20251119InputSchema = (0, import_provider_utils21.lazySchema)(
4128
- () => (0, import_provider_utils21.zodSchema)(
4129
- import_v418.z.object({
4185
+ var toolSearchBm25_20251119InputSchema = (0, import_provider_utils22.lazySchema)(
4186
+ () => (0, import_provider_utils22.zodSchema)(
4187
+ import_v419.z.object({
4130
4188
  /**
4131
4189
  * A natural language query to search for tools.
4132
4190
  * Claude will use BM25 text search to find relevant tools.
4133
4191
  */
4134
- query: import_v418.z.string(),
4192
+ query: import_v419.z.string(),
4135
4193
  /**
4136
4194
  * Maximum number of tools to return. Optional.
4137
4195
  */
4138
- limit: import_v418.z.number().optional()
4196
+ limit: import_v419.z.number().optional()
4139
4197
  })
4140
4198
  )
4141
4199
  );
4142
- var factory7 = (0, import_provider_utils21.createProviderToolFactoryWithOutputSchema)({
4200
+ var factory7 = (0, import_provider_utils22.createProviderToolFactoryWithOutputSchema)({
4143
4201
  id: "anthropic.tool_search_bm25_20251119",
4144
4202
  inputSchema: toolSearchBm25_20251119InputSchema,
4145
4203
  outputSchema: toolSearchBm25_20251119OutputSchema,
@@ -4207,6 +4265,22 @@ var anthropicTools = {
4207
4265
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
4208
4266
  */
4209
4267
  computer_20250124,
4268
+ /**
4269
+ * Claude can interact with computer environments through the computer use tool, which
4270
+ * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
4271
+ *
4272
+ * This version adds the zoom action for detailed screen region inspection.
4273
+ *
4274
+ * Image results are supported.
4275
+ *
4276
+ * Supported models: Claude Opus 4.5
4277
+ *
4278
+ * @param displayWidthPx - The width of the display being controlled by the model in pixels.
4279
+ * @param displayHeightPx - The height of the display being controlled by the model in pixels.
4280
+ * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
4281
+ * @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.
4282
+ */
4283
+ computer_20251124,
4210
4284
  /**
4211
4285
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
4212
4286
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -4306,8 +4380,8 @@ var anthropicTools = {
4306
4380
  // src/anthropic-provider.ts
4307
4381
  function createAnthropic(options = {}) {
4308
4382
  var _a, _b;
4309
- const baseURL = (_a = (0, import_provider_utils22.withoutTrailingSlash)(
4310
- (0, import_provider_utils22.loadOptionalSetting)({
4383
+ const baseURL = (_a = (0, import_provider_utils23.withoutTrailingSlash)(
4384
+ (0, import_provider_utils23.loadOptionalSetting)({
4311
4385
  settingValue: options.baseURL,
4312
4386
  environmentVariableName: "ANTHROPIC_BASE_URL"
4313
4387
  })
@@ -4321,13 +4395,13 @@ function createAnthropic(options = {}) {
4321
4395
  }
4322
4396
  const getHeaders = () => {
4323
4397
  const authHeaders = options.authToken ? { Authorization: `Bearer ${options.authToken}` } : {
4324
- "x-api-key": (0, import_provider_utils22.loadApiKey)({
4398
+ "x-api-key": (0, import_provider_utils23.loadApiKey)({
4325
4399
  apiKey: options.apiKey,
4326
4400
  environmentVariableName: "ANTHROPIC_API_KEY",
4327
4401
  description: "Anthropic"
4328
4402
  })
4329
4403
  };
4330
- return (0, import_provider_utils22.withUserAgentSuffix)(
4404
+ return (0, import_provider_utils23.withUserAgentSuffix)(
4331
4405
  {
4332
4406
  "anthropic-version": "2023-06-01",
4333
4407
  ...authHeaders,
@@ -4343,7 +4417,7 @@ function createAnthropic(options = {}) {
4343
4417
  baseURL,
4344
4418
  headers: getHeaders,
4345
4419
  fetch: options.fetch,
4346
- generateId: (_a2 = options.generateId) != null ? _a2 : import_provider_utils22.generateId,
4420
+ generateId: (_a2 = options.generateId) != null ? _a2 : import_provider_utils23.generateId,
4347
4421
  supportedUrls: () => ({
4348
4422
  "image/*": [/^https?:\/\/.*$/],
4349
4423
  "application/pdf": [/^https?:\/\/.*$/]