@ai-sdk/anthropic 0.0.55 → 1.0.0-canary.0

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,25 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 1.0.0-canary.0
4
+
5
+ ### Major Changes
6
+
7
+ - 66060f7: chore (release): bump major version to 4.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b469a7e]
12
+ - Updated dependencies [c0ddc24]
13
+ - Updated dependencies [db46ce5]
14
+ - @ai-sdk/provider-utils@2.0.0-canary.0
15
+ - @ai-sdk/provider@1.0.0-canary.0
16
+
17
+ ## 0.0.56
18
+
19
+ ### Patch Changes
20
+
21
+ - e6042b1: feat (provider/anthropic): add haiku 3.5 model ids
22
+
3
23
  ## 0.0.55
4
24
 
5
25
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { LanguageModelV1, ProviderV1 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod';
4
4
 
5
- type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
+ type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-5-haiku-latest' | 'claude-3-5-haiku-20241022' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
6
6
  interface AnthropicMessagesSettings {
7
7
  /**
8
8
  Only sample from the top K options for each subsequent token.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { LanguageModelV1, ProviderV1 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod';
4
4
 
5
- type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
+ type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-5-haiku-latest' | 'claude-3-5-haiku-20241022' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
6
6
  interface AnthropicMessagesSettings {
7
7
  /**
8
8
  Only sample from the top K options for each subsequent token.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "0.0.55",
3
+ "version": "1.0.0-canary.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@ai-sdk/provider": "0.0.26",
23
- "@ai-sdk/provider-utils": "1.0.22"
22
+ "@ai-sdk/provider": "1.0.0-canary.0",
23
+ "@ai-sdk/provider-utils": "2.0.0-canary.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^18",