langchain 0.3.13 → 0.3.14
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.
|
@@ -19,6 +19,8 @@ const _SUPPORTED_PROVIDERS = [
|
|
|
19
19
|
"mistralai",
|
|
20
20
|
"groq",
|
|
21
21
|
"bedrock",
|
|
22
|
+
"cerebras",
|
|
23
|
+
"deepseek",
|
|
22
24
|
];
|
|
23
25
|
async function _initChatModelHelper(model, modelProvider,
|
|
24
26
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -79,6 +81,10 @@ params = {}) {
|
|
|
79
81
|
const { ChatBedrockConverse } = await import("@langchain/aws");
|
|
80
82
|
return new ChatBedrockConverse({ model, ...passedParams });
|
|
81
83
|
}
|
|
84
|
+
case "deepseek": {
|
|
85
|
+
const { ChatDeepSeek } = await import("@langchain/deepseek");
|
|
86
|
+
return new ChatDeepSeek({ model, ...passedParams });
|
|
87
|
+
}
|
|
82
88
|
case "fireworks": {
|
|
83
89
|
const { ChatFireworks } = await import(
|
|
84
90
|
// We can not 'expect-error' because if you explicitly build `@langchain/community`
|
|
@@ -395,6 +401,7 @@ class _ConfigurableModel extends chat_models_1.BaseChatModel {
|
|
|
395
401
|
* - groq (@langchain/groq)
|
|
396
402
|
* - ollama (@langchain/ollama)
|
|
397
403
|
* - cerebras (@langchain/cerebras)
|
|
404
|
+
* - deepseek (@langchain/deepseek)
|
|
398
405
|
* @param {string[] | "any"} [fields.configurableFields] - Which model parameters are configurable:
|
|
399
406
|
* - undefined: No configurable fields.
|
|
400
407
|
* - "any": All fields are configurable. (See Security Note in description)
|
|
@@ -9,7 +9,7 @@ import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager";
|
|
|
9
9
|
import { ChatResult } from "@langchain/core/outputs";
|
|
10
10
|
interface EventStreamCallbackHandlerInput extends Omit<LogStreamCallbackHandlerInput, "_schemaFormat"> {
|
|
11
11
|
}
|
|
12
|
-
declare const _SUPPORTED_PROVIDERS: readonly ["openai", "anthropic", "azure_openai", "cohere", "google-vertexai", "google-vertexai-web", "google-genai", "google-genai", "ollama", "together", "fireworks", "mistralai", "groq", "bedrock"];
|
|
12
|
+
declare const _SUPPORTED_PROVIDERS: readonly ["openai", "anthropic", "azure_openai", "cohere", "google-vertexai", "google-vertexai-web", "google-genai", "google-genai", "ollama", "together", "fireworks", "mistralai", "groq", "bedrock", "cerebras", "deepseek"];
|
|
13
13
|
export type ChatModelProvider = (typeof _SUPPORTED_PROVIDERS)[number];
|
|
14
14
|
export interface ConfigurableChatModelCallOptions extends BaseChatModelCallOptions {
|
|
15
15
|
tools?: (StructuredToolInterface | Record<string, unknown> | ToolDefinition | RunnableToolLike)[];
|
|
@@ -16,6 +16,8 @@ const _SUPPORTED_PROVIDERS = [
|
|
|
16
16
|
"mistralai",
|
|
17
17
|
"groq",
|
|
18
18
|
"bedrock",
|
|
19
|
+
"cerebras",
|
|
20
|
+
"deepseek",
|
|
19
21
|
];
|
|
20
22
|
async function _initChatModelHelper(model, modelProvider,
|
|
21
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -76,6 +78,10 @@ params = {}) {
|
|
|
76
78
|
const { ChatBedrockConverse } = await import("@langchain/aws");
|
|
77
79
|
return new ChatBedrockConverse({ model, ...passedParams });
|
|
78
80
|
}
|
|
81
|
+
case "deepseek": {
|
|
82
|
+
const { ChatDeepSeek } = await import("@langchain/deepseek");
|
|
83
|
+
return new ChatDeepSeek({ model, ...passedParams });
|
|
84
|
+
}
|
|
79
85
|
case "fireworks": {
|
|
80
86
|
const { ChatFireworks } = await import(
|
|
81
87
|
// We can not 'expect-error' because if you explicitly build `@langchain/community`
|
|
@@ -391,6 +397,7 @@ class _ConfigurableModel extends BaseChatModel {
|
|
|
391
397
|
* - groq (@langchain/groq)
|
|
392
398
|
* - ollama (@langchain/ollama)
|
|
393
399
|
* - cerebras (@langchain/cerebras)
|
|
400
|
+
* - deepseek (@langchain/deepseek)
|
|
394
401
|
* @param {string[] | "any"} [fields.configurableFields] - Which model parameters are configurable:
|
|
395
402
|
* - undefined: No configurable fields.
|
|
396
403
|
* - "any": All fields are configurable. (See Security Note in description)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -420,6 +420,7 @@
|
|
|
420
420
|
"@langchain/cerebras": "*",
|
|
421
421
|
"@langchain/cohere": "*",
|
|
422
422
|
"@langchain/core": "workspace:*",
|
|
423
|
+
"@langchain/deepseek": "*",
|
|
423
424
|
"@langchain/google-genai": "*",
|
|
424
425
|
"@langchain/google-vertexai": "*",
|
|
425
426
|
"@langchain/google-vertexai-web": "*",
|
|
@@ -469,6 +470,7 @@
|
|
|
469
470
|
"@langchain/cerebras": "*",
|
|
470
471
|
"@langchain/cohere": "*",
|
|
471
472
|
"@langchain/core": ">=0.2.21 <0.4.0",
|
|
473
|
+
"@langchain/deepseek": "*",
|
|
472
474
|
"@langchain/google-genai": "*",
|
|
473
475
|
"@langchain/google-vertexai": "*",
|
|
474
476
|
"@langchain/google-vertexai-web": "*",
|
|
@@ -494,6 +496,9 @@
|
|
|
494
496
|
"@langchain/cohere": {
|
|
495
497
|
"optional": true
|
|
496
498
|
},
|
|
499
|
+
"@langchain/deepseek": {
|
|
500
|
+
"optional": true
|
|
501
|
+
},
|
|
497
502
|
"@langchain/google-genai": {
|
|
498
503
|
"optional": true
|
|
499
504
|
},
|