@langchain/deepseek 1.0.26 → 1.0.27
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 +9 -0
- package/dist/chat_models.cjs +1 -1
- package/dist/chat_models.js +1 -1
- package/dist/profiles.cjs +35 -7
- package/dist/profiles.cjs.map +1 -1
- package/dist/profiles.js +35 -7
- package/dist/profiles.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @langchain/deepseek
|
|
2
2
|
|
|
3
|
+
## 1.0.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#10747](https://github.com/langchain-ai/langchainjs/pull/10747) [`78e642f`](https://github.com/langchain-ai/langchainjs/commit/78e642ff14b2be594e8980058670a66fa77b0c42) Thanks [@neo1027144-creator](https://github.com/neo1027144-creator)! - feat(deepseek): add DeepSeek V4 Flash and V4 Pro model profiles
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`3999fab`](https://github.com/langchain-ai/langchainjs/commit/3999fab55870c6eea22d6d90c08aa472f9b2fac3), [`fce9ab4`](https://github.com/langchain-ai/langchainjs/commit/fce9ab418901323618fdfaaa9fc350fa1c0d50e0)]:
|
|
10
|
+
- @langchain/openai@1.4.7
|
|
11
|
+
|
|
3
12
|
## 1.0.26
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/chat_models.cjs
CHANGED
|
@@ -385,7 +385,7 @@ var ChatDeepSeek = class extends _langchain_openai.ChatOpenAICompletions {
|
|
|
385
385
|
...fields.configuration
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
this._addVersion("@langchain/deepseek", "1.0.
|
|
388
|
+
this._addVersion("@langchain/deepseek", "1.0.27");
|
|
389
389
|
}
|
|
390
390
|
_convertCompletionsDeltaToBaseMessageChunk(delta, rawResponse, defaultRole) {
|
|
391
391
|
const messageChunk = super._convertCompletionsDeltaToBaseMessageChunk(delta, rawResponse, defaultRole);
|
package/dist/chat_models.js
CHANGED
|
@@ -385,7 +385,7 @@ var ChatDeepSeek = class extends ChatOpenAICompletions {
|
|
|
385
385
|
...fields.configuration
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
this._addVersion("@langchain/deepseek", "1.0.
|
|
388
|
+
this._addVersion("@langchain/deepseek", "1.0.27");
|
|
389
389
|
}
|
|
390
390
|
_convertCompletionsDeltaToBaseMessageChunk(delta, rawResponse, defaultRole) {
|
|
391
391
|
const messageChunk = super._convertCompletionsDeltaToBaseMessageChunk(delta, rawResponse, defaultRole);
|
package/dist/profiles.cjs
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
//#region src/profiles.ts
|
|
2
2
|
const PROFILES = {
|
|
3
|
+
"deepseek-chat": {
|
|
4
|
+
maxInputTokens: 1e6,
|
|
5
|
+
imageInputs: false,
|
|
6
|
+
audioInputs: false,
|
|
7
|
+
pdfInputs: false,
|
|
8
|
+
videoInputs: false,
|
|
9
|
+
maxOutputTokens: 384e3,
|
|
10
|
+
reasoningOutput: false,
|
|
11
|
+
imageOutputs: false,
|
|
12
|
+
audioOutputs: false,
|
|
13
|
+
videoOutputs: false,
|
|
14
|
+
toolCalling: true,
|
|
15
|
+
structuredOutput: false
|
|
16
|
+
},
|
|
17
|
+
"deepseek-v4-pro": {
|
|
18
|
+
maxInputTokens: 1e6,
|
|
19
|
+
imageInputs: false,
|
|
20
|
+
audioInputs: false,
|
|
21
|
+
pdfInputs: false,
|
|
22
|
+
videoInputs: false,
|
|
23
|
+
maxOutputTokens: 384e3,
|
|
24
|
+
reasoningOutput: true,
|
|
25
|
+
imageOutputs: false,
|
|
26
|
+
audioOutputs: false,
|
|
27
|
+
videoOutputs: false,
|
|
28
|
+
toolCalling: true,
|
|
29
|
+
structuredOutput: true
|
|
30
|
+
},
|
|
3
31
|
"deepseek-reasoner": {
|
|
4
|
-
maxInputTokens:
|
|
32
|
+
maxInputTokens: 1e6,
|
|
5
33
|
imageInputs: false,
|
|
6
34
|
audioInputs: false,
|
|
7
35
|
pdfInputs: false,
|
|
8
36
|
videoInputs: false,
|
|
9
|
-
maxOutputTokens:
|
|
37
|
+
maxOutputTokens: 384e3,
|
|
10
38
|
reasoningOutput: true,
|
|
11
39
|
imageOutputs: false,
|
|
12
40
|
audioOutputs: false,
|
|
@@ -14,19 +42,19 @@ const PROFILES = {
|
|
|
14
42
|
toolCalling: true,
|
|
15
43
|
structuredOutput: false
|
|
16
44
|
},
|
|
17
|
-
"deepseek-
|
|
18
|
-
maxInputTokens:
|
|
45
|
+
"deepseek-v4-flash": {
|
|
46
|
+
maxInputTokens: 1e6,
|
|
19
47
|
imageInputs: false,
|
|
20
48
|
audioInputs: false,
|
|
21
49
|
pdfInputs: false,
|
|
22
50
|
videoInputs: false,
|
|
23
|
-
maxOutputTokens:
|
|
24
|
-
reasoningOutput:
|
|
51
|
+
maxOutputTokens: 384e3,
|
|
52
|
+
reasoningOutput: true,
|
|
25
53
|
imageOutputs: false,
|
|
26
54
|
audioOutputs: false,
|
|
27
55
|
videoOutputs: false,
|
|
28
56
|
toolCalling: true,
|
|
29
|
-
structuredOutput:
|
|
57
|
+
structuredOutput: true
|
|
30
58
|
}
|
|
31
59
|
};
|
|
32
60
|
//#endregion
|
package/dist/profiles.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.cjs","names":[],"sources":["../src/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"deepseek-
|
|
1
|
+
{"version":3,"file":"profiles.cjs","names":[],"sources":["../src/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"deepseek-chat\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"deepseek-v4-pro\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"deepseek-reasoner\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"deepseek-v4-flash\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n};\nexport default PROFILES;\n"],"mappings":";AAIA,MAAM,WAAyC;CAC7C,iBAAiB;EACf,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,mBAAmB;EACjB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,qBAAqB;EACnB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,qBAAqB;EACnB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACF"}
|
package/dist/profiles.js
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
//#region src/profiles.ts
|
|
2
2
|
const PROFILES = {
|
|
3
|
+
"deepseek-chat": {
|
|
4
|
+
maxInputTokens: 1e6,
|
|
5
|
+
imageInputs: false,
|
|
6
|
+
audioInputs: false,
|
|
7
|
+
pdfInputs: false,
|
|
8
|
+
videoInputs: false,
|
|
9
|
+
maxOutputTokens: 384e3,
|
|
10
|
+
reasoningOutput: false,
|
|
11
|
+
imageOutputs: false,
|
|
12
|
+
audioOutputs: false,
|
|
13
|
+
videoOutputs: false,
|
|
14
|
+
toolCalling: true,
|
|
15
|
+
structuredOutput: false
|
|
16
|
+
},
|
|
17
|
+
"deepseek-v4-pro": {
|
|
18
|
+
maxInputTokens: 1e6,
|
|
19
|
+
imageInputs: false,
|
|
20
|
+
audioInputs: false,
|
|
21
|
+
pdfInputs: false,
|
|
22
|
+
videoInputs: false,
|
|
23
|
+
maxOutputTokens: 384e3,
|
|
24
|
+
reasoningOutput: true,
|
|
25
|
+
imageOutputs: false,
|
|
26
|
+
audioOutputs: false,
|
|
27
|
+
videoOutputs: false,
|
|
28
|
+
toolCalling: true,
|
|
29
|
+
structuredOutput: true
|
|
30
|
+
},
|
|
3
31
|
"deepseek-reasoner": {
|
|
4
|
-
maxInputTokens:
|
|
32
|
+
maxInputTokens: 1e6,
|
|
5
33
|
imageInputs: false,
|
|
6
34
|
audioInputs: false,
|
|
7
35
|
pdfInputs: false,
|
|
8
36
|
videoInputs: false,
|
|
9
|
-
maxOutputTokens:
|
|
37
|
+
maxOutputTokens: 384e3,
|
|
10
38
|
reasoningOutput: true,
|
|
11
39
|
imageOutputs: false,
|
|
12
40
|
audioOutputs: false,
|
|
@@ -14,19 +42,19 @@ const PROFILES = {
|
|
|
14
42
|
toolCalling: true,
|
|
15
43
|
structuredOutput: false
|
|
16
44
|
},
|
|
17
|
-
"deepseek-
|
|
18
|
-
maxInputTokens:
|
|
45
|
+
"deepseek-v4-flash": {
|
|
46
|
+
maxInputTokens: 1e6,
|
|
19
47
|
imageInputs: false,
|
|
20
48
|
audioInputs: false,
|
|
21
49
|
pdfInputs: false,
|
|
22
50
|
videoInputs: false,
|
|
23
|
-
maxOutputTokens:
|
|
24
|
-
reasoningOutput:
|
|
51
|
+
maxOutputTokens: 384e3,
|
|
52
|
+
reasoningOutput: true,
|
|
25
53
|
imageOutputs: false,
|
|
26
54
|
audioOutputs: false,
|
|
27
55
|
videoOutputs: false,
|
|
28
56
|
toolCalling: true,
|
|
29
|
-
structuredOutput:
|
|
57
|
+
structuredOutput: true
|
|
30
58
|
}
|
|
31
59
|
};
|
|
32
60
|
//#endregion
|
package/dist/profiles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","names":[],"sources":["../src/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"deepseek-
|
|
1
|
+
{"version":3,"file":"profiles.js","names":[],"sources":["../src/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"deepseek-chat\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"deepseek-v4-pro\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"deepseek-reasoner\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"deepseek-v4-flash\": {\n maxInputTokens: 1000000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 384000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n};\nexport default PROFILES;\n"],"mappings":";AAIA,MAAM,WAAyC;CAC7C,iBAAiB;EACf,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,mBAAmB;EACjB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,qBAAqB;EACnB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,qBAAqB;EACnB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/deepseek",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Deepseek integration for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "LangChain",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-deepseek",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@langchain/openai": "1.4.
|
|
17
|
+
"@langchain/openai": "1.4.7"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@langchain/core": "^1.0.0"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dpdm": "^3.14.0",
|
|
27
27
|
"typescript": "~5.8.3",
|
|
28
28
|
"vitest": "^4.1.2",
|
|
29
|
-
"@langchain/core": "^1.1.
|
|
29
|
+
"@langchain/core": "^1.1.48",
|
|
30
30
|
"@langchain/standard-tests": "0.0.23",
|
|
31
31
|
"@langchain/tsconfig": "0.0.1"
|
|
32
32
|
},
|