@langchain/anthropic 0.1.5 → 0.1.6
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/dist/chat_models.d.ts +2 -2
- package/package.json +3 -2
package/dist/chat_models.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare class ChatAnthropicMessages<CallOptions extends BaseLanguageModel
|
|
|
119
119
|
metadata?: Anthropic.Messages.MessageCreateParams.Metadata | undefined;
|
|
120
120
|
stream?: boolean | undefined;
|
|
121
121
|
max_tokens: number;
|
|
122
|
-
model: string;
|
|
122
|
+
model: (string & {}) | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-2.1'" | "claude-2.0" | "claude-instant-1.2";
|
|
123
123
|
stop_sequences?: string[] | undefined;
|
|
124
124
|
system?: string | undefined;
|
|
125
125
|
temperature?: number | undefined;
|
|
@@ -134,7 +134,7 @@ export declare class ChatAnthropicMessages<CallOptions extends BaseLanguageModel
|
|
|
134
134
|
metadata?: Anthropic.Messages.MessageCreateParams.Metadata | undefined;
|
|
135
135
|
stream?: boolean | undefined;
|
|
136
136
|
max_tokens: number;
|
|
137
|
-
model: string;
|
|
137
|
+
model: (string & {}) | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-2.1'" | "claude-2.0" | "claude-instant-1.2";
|
|
138
138
|
stop_sequences?: string[] | undefined;
|
|
139
139
|
system?: string | undefined;
|
|
140
140
|
temperature?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/anthropic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Anthropic integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
30
30
|
"test:watch": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
31
31
|
"test:single": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
|
|
32
|
+
"test:int": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
32
33
|
"format": "prettier --config .prettierrc --write \"src\"",
|
|
33
34
|
"format:check": "prettier --config .prettierrc --check \"src\"",
|
|
34
35
|
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"author": "LangChain",
|
|
39
40
|
"license": "MIT",
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@anthropic-ai/sdk": "^0.
|
|
42
|
+
"@anthropic-ai/sdk": "^0.17.2",
|
|
42
43
|
"@langchain/core": "~0.1.44",
|
|
43
44
|
"fast-xml-parser": "^4.3.5",
|
|
44
45
|
"zod": "^3.22.4",
|