@librechat/agents-types 2.4.36 → 2.4.38
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/llm.ts +6 -3
- package/package.json +1 -1
package/llm.ts
CHANGED
@@ -4,7 +4,6 @@ import { ChatAnthropic } from '@langchain/anthropic';
|
|
4
4
|
import { ChatMistralAI } from '@langchain/mistralai';
|
5
5
|
import { ChatBedrockConverse } from '@langchain/aws';
|
6
6
|
import { ChatVertexAI } from '@langchain/google-vertexai';
|
7
|
-
import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
|
8
7
|
import { BedrockChat } from '@langchain/community/chat_models/bedrock/web';
|
9
8
|
import type {
|
10
9
|
BindToolsInput,
|
@@ -23,6 +22,7 @@ import type { ChatDeepSeekCallOptions } from '@langchain/deepseek';
|
|
23
22
|
import type { ChatOpenRouterCallOptions } from '@/llm/openrouter';
|
24
23
|
import type { ChatBedrockConverseInput } from '@langchain/aws';
|
25
24
|
import type { ChatMistralAIInput } from '@langchain/mistralai';
|
25
|
+
import type { RequestOptions } from '@google/generative-ai';
|
26
26
|
import type { StructuredTool } from '@langchain/core/tools';
|
27
27
|
import type { AnthropicInput } from '@langchain/anthropic';
|
28
28
|
import type { Runnable } from '@langchain/core/runnables';
|
@@ -35,6 +35,7 @@ import {
|
|
35
35
|
ChatDeepSeek,
|
36
36
|
AzureChatOpenAI,
|
37
37
|
} from '@/llm/openai';
|
38
|
+
import { CustomChatGoogleGenerativeAI } from '@/llm/google';
|
38
39
|
import { ChatOpenRouter } from '@/llm/openrouter';
|
39
40
|
import { Providers } from '@/common';
|
40
41
|
|
@@ -67,7 +68,9 @@ export type BedrockAnthropicInput = ChatBedrockConverseInput & {
|
|
67
68
|
AnthropicReasoning;
|
68
69
|
};
|
69
70
|
export type BedrockConverseClientOptions = ChatBedrockConverseInput;
|
70
|
-
export type GoogleClientOptions = GoogleGenerativeAIChatInput
|
71
|
+
export type GoogleClientOptions = GoogleGenerativeAIChatInput & {
|
72
|
+
customHeaders?: RequestOptions['customHeaders'];
|
73
|
+
};
|
71
74
|
export type DeepSeekClientOptions = ChatDeepSeekCallOptions;
|
72
75
|
export type XAIClientOptions = ChatXAIInput;
|
73
76
|
|
@@ -117,7 +120,7 @@ export type ChatModelMap = {
|
|
117
120
|
[Providers.OPENROUTER]: ChatOpenRouter;
|
118
121
|
[Providers.BEDROCK_LEGACY]: BedrockChat;
|
119
122
|
[Providers.BEDROCK]: ChatBedrockConverse;
|
120
|
-
[Providers.GOOGLE]:
|
123
|
+
[Providers.GOOGLE]: CustomChatGoogleGenerativeAI;
|
121
124
|
};
|
122
125
|
|
123
126
|
export type ChatModelConstructorMap = {
|