librechat-data-provider 0.8.300 → 0.8.301

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/src/schemas.ts CHANGED
@@ -49,6 +49,7 @@ export enum Providers {
49
49
  export const documentSupportedProviders = new Set<string>([
50
50
  EModelEndpoint.anthropic,
51
51
  EModelEndpoint.openAI,
52
+ EModelEndpoint.bedrock,
52
53
  EModelEndpoint.custom,
53
54
  // handled in AttachFileMenu and DragDropModal since azureOpenAI only supports documents with Use Responses API set to true
54
55
  // EModelEndpoint.azureOpenAI,
@@ -184,6 +185,12 @@ export enum AnthropicEffort {
184
185
  max = 'max',
185
186
  }
186
187
 
188
+ export enum BedrockReasoningConfig {
189
+ low = 'low',
190
+ medium = 'medium',
191
+ high = 'high',
192
+ }
193
+
187
194
  export enum ReasoningSummary {
188
195
  none = '',
189
196
  auto = 'auto',
@@ -198,6 +205,14 @@ export enum Verbosity {
198
205
  high = 'high',
199
206
  }
200
207
 
208
+ export enum ThinkingLevel {
209
+ unset = '',
210
+ minimal = 'minimal',
211
+ low = 'low',
212
+ medium = 'medium',
213
+ high = 'high',
214
+ }
215
+
201
216
  export const imageDetailNumeric = {
202
217
  [ImageDetail.low]: 0,
203
218
  [ImageDetail.auto]: 1,
@@ -215,6 +230,7 @@ export const eReasoningEffortSchema = z.nativeEnum(ReasoningEffort);
215
230
  export const eAnthropicEffortSchema = z.nativeEnum(AnthropicEffort);
216
231
  export const eReasoningSummarySchema = z.nativeEnum(ReasoningSummary);
217
232
  export const eVerbositySchema = z.nativeEnum(Verbosity);
233
+ export const eThinkingLevelSchema = z.nativeEnum(ThinkingLevel);
218
234
 
219
235
  export const defaultAssistantFormValues = {
220
236
  assistant: '',
@@ -359,6 +375,9 @@ export const googleSettings = {
359
375
  */
360
376
  default: -1 as const,
361
377
  },
378
+ thinkingLevel: {
379
+ default: ThinkingLevel.unset as const,
380
+ },
362
381
  };
363
382
 
364
383
  const ANTHROPIC_MAX_OUTPUT = 128000 as const;
@@ -543,6 +562,7 @@ export const tPluginAuthConfigSchema = z.object({
543
562
  authField: z.string(),
544
563
  label: z.string(),
545
564
  description: z.string(),
565
+ optional: z.boolean().optional(),
546
566
  });
547
567
 
548
568
  export type TPluginAuthConfig = z.infer<typeof tPluginAuthConfigSchema>;
@@ -714,6 +734,7 @@ export const tConversationSchema = z.object({
714
734
  system: z.string().optional(),
715
735
  thinking: z.boolean().optional(),
716
736
  thinkingBudget: coerceNumber.optional(),
737
+ thinkingLevel: eThinkingLevelSchema.optional(),
717
738
  stream: z.boolean().optional(),
718
739
  /* artifacts */
719
740
  artifacts: z.string().optional(),
@@ -860,6 +881,7 @@ export const tQueryParamsSchema = tConversationSchema
860
881
  promptCache: true,
861
882
  thinking: true,
862
883
  thinkingBudget: true,
884
+ thinkingLevel: true,
863
885
  effort: true,
864
886
  /** @endpoints bedrock */
865
887
  region: true,
@@ -935,6 +957,7 @@ export const googleBaseSchema = tConversationSchema.pick({
935
957
  topK: true,
936
958
  thinking: true,
937
959
  thinkingBudget: true,
960
+ thinkingLevel: true,
938
961
  web_search: true,
939
962
  fileTokenLimit: true,
940
963
  iconURL: true,
@@ -966,6 +989,7 @@ export const googleGenConfigSchema = z
966
989
  .object({
967
990
  includeThoughts: z.boolean().optional(),
968
991
  thinkingBudget: coerceNumber.optional(),
992
+ thinkingLevel: z.string().optional(),
969
993
  })
970
994
  .optional(),
971
995
  web_search: z.boolean().optional(),
@@ -13,6 +13,7 @@ export enum FileSources {
13
13
  azure_mistral_ocr = 'azure_mistral_ocr',
14
14
  vertexai_mistral_ocr = 'vertexai_mistral_ocr',
15
15
  text = 'text',
16
+ document_parser = 'document_parser',
16
17
  }
17
18
 
18
19
  export const checkOpenAIStorage = (source: string) =>
package/src/types.ts CHANGED
@@ -52,6 +52,7 @@ export type TEndpointOption = Pick<
52
52
  | 'promptCache'
53
53
  | 'thinking'
54
54
  | 'thinkingBudget'
55
+ | 'thinkingLevel'
55
56
  | 'effort'
56
57
  // Assistant/Agent fields
57
58
  | 'assistant_id'