@librechat/agents-types 2.4.14 → 2.4.16

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.
Files changed (2) hide show
  1. package/llm.ts +11 -11
  2. package/package.json +1 -1
package/llm.ts CHANGED
@@ -1,31 +1,26 @@
1
1
  // src/types/llm.ts
2
- import { ChatXAI } from '@langchain/xai';
3
2
  import { ChatOllama } from '@langchain/ollama';
4
- import { ChatDeepSeek } from '@langchain/deepseek';
5
3
  import { ChatAnthropic } from '@langchain/anthropic';
6
4
  import { ChatMistralAI } from '@langchain/mistralai';
7
5
  import { ChatBedrockConverse } from '@langchain/aws';
8
6
  import { ChatVertexAI } from '@langchain/google-vertexai';
9
7
  import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
10
8
  import { BedrockChat } from '@langchain/community/chat_models/bedrock/web';
11
- import {
12
- ChatOpenAI,
13
- AzureChatOpenAI,
14
- ClientOptions as OAIClientOptions,
15
- } from '@langchain/openai';
16
9
  import type {
17
10
  BindToolsInput,
18
11
  BaseChatModelParams,
19
12
  } from '@langchain/core/language_models/chat_models';
20
13
  import type {
21
- ChatOpenAIFields,
22
14
  OpenAIChatInput,
15
+ ChatOpenAIFields,
23
16
  AzureOpenAIInput,
17
+ ClientOptions as OAIClientOptions,
24
18
  } from '@langchain/openai';
25
19
  import type { BedrockChatFields } from '@langchain/community/chat_models/bedrock/web';
26
20
  import type { GoogleGenerativeAIChatInput } from '@langchain/google-genai';
27
21
  import type { ChatVertexAIInput } from '@langchain/google-vertexai';
28
22
  import type { ChatDeepSeekCallOptions } from '@langchain/deepseek';
23
+ import type { ChatOpenRouterCallOptions } from '@/llm/openrouter';
29
24
  import type { ChatBedrockConverseInput } from '@langchain/aws';
30
25
  import type { ChatMistralAIInput } from '@langchain/mistralai';
31
26
  import type { StructuredTool } from '@langchain/core/tools';
@@ -34,8 +29,13 @@ import type { Runnable } from '@langchain/core/runnables';
34
29
  import type { ChatOllamaInput } from '@langchain/ollama';
35
30
  import type { OpenAI as OpenAIClient } from 'openai';
36
31
  import type { ChatXAIInput } from '@langchain/xai';
37
- import type { ChatOpenRouterCallOptions } from '@/llm/openrouter/llm';
38
- import { ChatOpenRouter } from '@/llm/openrouter/llm';
32
+ import {
33
+ ChatXAI,
34
+ ChatOpenAI,
35
+ ChatDeepSeek,
36
+ AzureChatOpenAI,
37
+ } from '@/llm/openai';
38
+ import { ChatOpenRouter } from '@/llm/openrouter';
39
39
  import { Providers } from '@/common';
40
40
 
41
41
  export type AzureClientOptions = Partial<OpenAIChatInput> &
@@ -105,6 +105,7 @@ export type ProviderOptionsMap = {
105
105
  };
106
106
 
107
107
  export type ChatModelMap = {
108
+ [Providers.XAI]: ChatXAI;
108
109
  [Providers.OPENAI]: ChatOpenAI;
109
110
  [Providers.OLLAMA]: ChatOllama;
110
111
  [Providers.AZURE]: AzureChatOpenAI;
@@ -117,7 +118,6 @@ export type ChatModelMap = {
117
118
  [Providers.BEDROCK_LEGACY]: BedrockChat;
118
119
  [Providers.BEDROCK]: ChatBedrockConverse;
119
120
  [Providers.GOOGLE]: ChatGoogleGenerativeAI;
120
- [Providers.XAI]: ChatXAI;
121
121
  };
122
122
 
123
123
  export type ChatModelConstructorMap = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents-types",
3
- "version": "2.4.14",
3
+ "version": "2.4.16",
4
4
  "description": "Type definitions for @librechat/agents",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {