@ai-sdk/google-vertex 5.0.0-canary.96 → 5.0.0-canary.97

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,13 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.0-canary.97
4
+
5
+ ### Patch Changes
6
+
7
+ - e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
8
+ - Updated dependencies [e02f041]
9
+ - @ai-sdk/anthropic@4.0.0-canary.61
10
+
3
11
  ## 5.0.0-canary.96
4
12
 
5
13
  ### Patch Changes
@@ -20,7 +20,7 @@ interface GoogleCredentials {
20
20
  privateKeyId?: string;
21
21
  }
22
22
 
23
- type GoogleVertexAnthropicModelId = 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
23
+ type GoogleVertexAnthropicModelId = 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
24
24
 
25
25
  type GoogleVertexAnthropicTools = Pick<typeof anthropicTools, 'bash_20241022' | 'bash_20250124' | 'textEditor_20241022' | 'textEditor_20250124' | 'textEditor_20250429' | 'textEditor_20250728' | 'computer_20241022' | 'webSearch_20250305' | 'toolSearchRegex_20251119' | 'toolSearchBm25_20251119'>;
26
26
  /**
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.0-canary.96" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.0-canary.97" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -3,7 +3,7 @@ import { ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
3
3
  import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
4
4
  import { anthropicTools } from '@ai-sdk/anthropic/internal';
5
5
 
6
- type GoogleVertexAnthropicModelId = 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
6
+ type GoogleVertexAnthropicModelId = 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-opus-4-5@20251101' | 'claude-sonnet-4-5@20250929' | 'claude-opus-4-1@20250805' | 'claude-opus-4@20250514' | 'claude-sonnet-4@20250514' | 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
7
7
 
8
8
  type GoogleVertexAnthropicTools = Pick<typeof anthropicTools, 'bash_20241022' | 'bash_20250124' | 'textEditor_20241022' | 'textEditor_20250124' | 'textEditor_20250429' | 'textEditor_20250728' | 'computer_20241022' | 'webSearch_20250305' | 'toolSearchRegex_20251119' | 'toolSearchBm25_20251119'>;
9
9
  /**
@@ -14,7 +14,7 @@ import {
14
14
  } from "@ai-sdk/provider-utils";
15
15
 
16
16
  // src/version.ts
17
- var VERSION = true ? "5.0.0-canary.96" : "0.0.0-test";
17
+ var VERSION = true ? "5.0.0-canary.97" : "0.0.0-test";
18
18
 
19
19
  // src/google-vertex-embedding-model.ts
20
20
  import {
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  } from "@ai-sdk/provider-utils";
30
30
 
31
31
  // src/version.ts
32
- var VERSION = true ? "5.0.0-canary.96" : "0.0.0-test";
32
+ var VERSION = true ? "5.0.0-canary.97" : "0.0.0-test";
33
33
 
34
34
  // src/google-vertex-embedding-model.ts
35
35
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.0-canary.96" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.0-canary.97" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.0-canary.96" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.0-canary.97" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -517,7 +517,7 @@ const result = streamText({
517
517
  },
518
518
  });
519
519
 
520
- for await (const part of result.fullStream) {
520
+ for await (const part of result.stream) {
521
521
  switch (part.type) {
522
522
  case 'tool-input-start':
523
523
  console.log(`Tool call started: ${part.toolName}`);
@@ -581,7 +581,7 @@ const result = streamText({
581
581
  prompt: 'Explain quantum computing in simple terms.',
582
582
  });
583
583
 
584
- for await (const part of result.fullStream) {
584
+ for await (const part of result.stream) {
585
585
  if (part.type === 'reasoning') {
586
586
  process.stdout.write(`THOUGHT: ${part.textDelta}\n`);
587
587
  } else if (part.type === 'text-delta') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.0-canary.96",
3
+ "version": "5.0.0-canary.97",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "google-auth-library": "^10.6.2",
75
- "@ai-sdk/anthropic": "4.0.0-canary.60",
75
+ "@ai-sdk/anthropic": "4.0.0-canary.61",
76
76
  "@ai-sdk/google": "4.0.0-canary.74",
77
77
  "@ai-sdk/openai-compatible": "3.0.0-canary.52",
78
78
  "@ai-sdk/provider": "4.0.0-canary.17",
@@ -1,5 +1,6 @@
1
1
  // https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude
2
2
  export type GoogleVertexAnthropicModelId =
3
+ | 'claude-opus-4-8'
3
4
  | 'claude-opus-4-7'
4
5
  | 'claude-opus-4-6'
5
6
  | 'claude-sonnet-4-6'