@aigne/anthropic 0.12.2 → 0.13.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,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.13.0](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.12.3...anthropic-v0.13.0) (2025-09-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support custom prefer input file type ([#469](https://github.com/AIGNE-io/aigne-framework/issues/469)) ([db0161b](https://github.com/AIGNE-io/aigne-framework/commit/db0161bbac52542c771ee2f40f361636b0668075))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/core bumped to 1.59.0
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/test-utils bumped to 0.5.48
|
|
18
|
+
|
|
19
|
+
## [0.12.3](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.12.2...anthropic-v0.12.3) (2025-09-08)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
* The following workspace dependencies were updated
|
|
25
|
+
* dependencies
|
|
26
|
+
* @aigne/core bumped to 1.58.3
|
|
27
|
+
* devDependencies
|
|
28
|
+
* @aigne/test-utils bumped to 0.5.47
|
|
29
|
+
|
|
3
30
|
## [0.12.2](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.12.1...anthropic-v0.12.2) (2025-09-05)
|
|
4
31
|
|
|
5
32
|
|
|
@@ -5,23 +5,13 @@ import { z } from "zod";
|
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for Claude Chat Model
|
|
7
7
|
*/
|
|
8
|
-
export interface AnthropicChatModelOptions {
|
|
8
|
+
export interface AnthropicChatModelOptions extends ChatModelOptions {
|
|
9
9
|
/**
|
|
10
10
|
* API key for Anthropic's Claude API
|
|
11
11
|
*
|
|
12
12
|
* If not provided, will look for ANTHROPIC_API_KEY or CLAUDE_API_KEY in environment variables
|
|
13
13
|
*/
|
|
14
14
|
apiKey?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Claude model to use
|
|
17
|
-
*
|
|
18
|
-
* Defaults to 'claude-3-7-sonnet-latest'
|
|
19
|
-
*/
|
|
20
|
-
model?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Additional model options to control behavior
|
|
23
|
-
*/
|
|
24
|
-
modelOptions?: ChatModelOptions;
|
|
25
15
|
/**
|
|
26
16
|
* Optional client options for the Anthropic SDK
|
|
27
17
|
*/
|
|
@@ -105,7 +95,7 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
105
95
|
*/
|
|
106
96
|
protected _client?: Anthropic;
|
|
107
97
|
get client(): Anthropic;
|
|
108
|
-
get modelOptions():
|
|
98
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
109
99
|
get credential(): {
|
|
110
100
|
apiKey: string | undefined;
|
|
111
101
|
model: string;
|
|
@@ -5,23 +5,13 @@ import { z } from "zod";
|
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for Claude Chat Model
|
|
7
7
|
*/
|
|
8
|
-
export interface AnthropicChatModelOptions {
|
|
8
|
+
export interface AnthropicChatModelOptions extends ChatModelOptions {
|
|
9
9
|
/**
|
|
10
10
|
* API key for Anthropic's Claude API
|
|
11
11
|
*
|
|
12
12
|
* If not provided, will look for ANTHROPIC_API_KEY or CLAUDE_API_KEY in environment variables
|
|
13
13
|
*/
|
|
14
14
|
apiKey?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Claude model to use
|
|
17
|
-
*
|
|
18
|
-
* Defaults to 'claude-3-7-sonnet-latest'
|
|
19
|
-
*/
|
|
20
|
-
model?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Additional model options to control behavior
|
|
23
|
-
*/
|
|
24
|
-
modelOptions?: ChatModelOptions;
|
|
25
15
|
/**
|
|
26
16
|
* Optional client options for the Anthropic SDK
|
|
27
17
|
*/
|
|
@@ -105,7 +95,7 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
105
95
|
*/
|
|
106
96
|
protected _client?: Anthropic;
|
|
107
97
|
get client(): Anthropic;
|
|
108
|
-
get modelOptions():
|
|
98
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
109
99
|
get credential(): {
|
|
110
100
|
apiKey: string | undefined;
|
|
111
101
|
model: string;
|
|
@@ -5,23 +5,13 @@ import { z } from "zod";
|
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for Claude Chat Model
|
|
7
7
|
*/
|
|
8
|
-
export interface AnthropicChatModelOptions {
|
|
8
|
+
export interface AnthropicChatModelOptions extends ChatModelOptions {
|
|
9
9
|
/**
|
|
10
10
|
* API key for Anthropic's Claude API
|
|
11
11
|
*
|
|
12
12
|
* If not provided, will look for ANTHROPIC_API_KEY or CLAUDE_API_KEY in environment variables
|
|
13
13
|
*/
|
|
14
14
|
apiKey?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Claude model to use
|
|
17
|
-
*
|
|
18
|
-
* Defaults to 'claude-3-7-sonnet-latest'
|
|
19
|
-
*/
|
|
20
|
-
model?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Additional model options to control behavior
|
|
23
|
-
*/
|
|
24
|
-
modelOptions?: ChatModelOptions;
|
|
25
15
|
/**
|
|
26
16
|
* Optional client options for the Anthropic SDK
|
|
27
17
|
*/
|
|
@@ -105,7 +95,7 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
105
95
|
*/
|
|
106
96
|
protected _client?: Anthropic;
|
|
107
97
|
get client(): Anthropic;
|
|
108
|
-
get modelOptions():
|
|
98
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
109
99
|
get credential(): {
|
|
110
100
|
apiKey: string | undefined;
|
|
111
101
|
model: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/anthropic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "AIGNE Anthropic SDK for integrating with Claude AI models",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@anthropic-ai/sdk": "^0.56.0",
|
|
39
39
|
"ajv": "^8.17.1",
|
|
40
40
|
"zod": "^3.25.67",
|
|
41
|
-
"@aigne/core": "^1.
|
|
41
|
+
"@aigne/core": "^1.59.0",
|
|
42
42
|
"@aigne/platform-helpers": "^0.6.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"npm-run-all": "^4.1.5",
|
|
48
48
|
"rimraf": "^6.0.1",
|
|
49
49
|
"typescript": "^5.8.3",
|
|
50
|
-
"@aigne/test-utils": "^0.5.
|
|
50
|
+
"@aigne/test-utils": "^0.5.48"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"lint": "tsc --noEmit",
|