librechat-data-provider 0.7.74 → 0.7.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "librechat-data-provider",
3
- "version": "0.7.74",
3
+ "version": "0.7.76",
4
4
  "description": "data services for librechat apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/config.ts CHANGED
@@ -51,6 +51,7 @@ export const excludedKeys = new Set([
51
51
  'tools',
52
52
  'model',
53
53
  'files',
54
+ 'spec',
54
55
  ]);
55
56
 
56
57
  export enum SettingsViews {
package/src/schemas.ts CHANGED
@@ -230,7 +230,7 @@ export const googleSettings = {
230
230
  },
231
231
  maxOutputTokens: {
232
232
  min: 1 as const,
233
- max: 8192 as const,
233
+ max: 64000 as const,
234
234
  step: 1 as const,
235
235
  default: 8192 as const,
236
236
  },
@@ -645,6 +645,8 @@ export const tConvoUpdateSchema = tConversationSchema.merge(
645
645
  export const tQueryParamsSchema = tConversationSchema
646
646
  .pick({
647
647
  // librechat settings
648
+ /** The model spec to be used */
649
+ spec: true,
648
650
  /** The AI context window, overrides the system-defined window as determined by `model` value */
649
651
  maxContextTokens: true,
650
652
  /**
@@ -150,11 +150,12 @@ export type File = {
150
150
 
151
151
  /* Agent types */
152
152
 
153
- export type AgentParameterValue = number | null;
153
+ export type AgentParameterValue = number | string | null;
154
154
 
155
155
  export type AgentModelParameters = {
156
156
  model?: string;
157
157
  temperature: AgentParameterValue;
158
+ maxContextTokens: AgentParameterValue;
158
159
  max_context_tokens: AgentParameterValue;
159
160
  max_output_tokens: AgentParameterValue;
160
161
  top_p: AgentParameterValue;
@@ -447,7 +448,7 @@ export type ContentPart = (
447
448
  PartMetadata;
448
449
 
449
450
  export type TMessageContentParts =
450
- | { type: ContentTypes.ERROR; text: Text & PartMetadata }
451
+ | { type: ContentTypes.ERROR; text?: string | (Text & PartMetadata); error?: string }
451
452
  | { type: ContentTypes.THINK; think: string | (Text & PartMetadata) }
452
453
  | { type: ContentTypes.TEXT; text: string | (Text & PartMetadata); tool_call_ids?: string[] }
453
454
  | {