librechat-data-provider 0.4.1 → 0.4.3

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
@@ -506,9 +506,6 @@ export const compactOpenAISchema = tConversationSchema
506
506
  })
507
507
  .transform((obj: Partial<TConversation>) => {
508
508
  const newObj: Partial<TConversation> = { ...obj };
509
- if (newObj.model === 'gpt-3.5-turbo') {
510
- delete newObj.model;
511
- }
512
509
  if (newObj.temperature === 1) {
513
510
  delete newObj.temperature;
514
511
  }
@@ -545,9 +542,6 @@ export const compactGoogleSchema = tConversationSchema
545
542
  })
546
543
  .transform((obj) => {
547
544
  const newObj: Partial<TConversation> = { ...obj };
548
- if (newObj.model === google.model.default) {
549
- delete newObj.model;
550
- }
551
545
  if (newObj.temperature === google.temperature.default) {
552
546
  delete newObj.temperature;
553
547
  }
@@ -577,9 +571,6 @@ export const compactAnthropicSchema = tConversationSchema
577
571
  })
578
572
  .transform((obj) => {
579
573
  const newObj: Partial<TConversation> = { ...obj };
580
- if (newObj.model === 'claude-1') {
581
- delete newObj.model;
582
- }
583
574
  if (newObj.temperature === 1) {
584
575
  delete newObj.temperature;
585
576
  }
@@ -603,11 +594,6 @@ export const compactChatGPTSchema = tConversationSchema
603
594
  })
604
595
  .transform((obj) => {
605
596
  const newObj: Partial<TConversation> = { ...obj };
606
- // model: obj.model ?? 'text-davinci-002-render-sha',
607
- if (newObj.model === 'text-davinci-002-render-sha') {
608
- delete newObj.model;
609
- }
610
-
611
597
  return removeNullishValues(newObj);
612
598
  })
613
599
  .catch(() => ({}));
@@ -626,9 +612,6 @@ export const compactPluginsSchema = tConversationSchema
626
612
  })
627
613
  .transform((obj) => {
628
614
  const newObj: Partial<TConversation> = { ...obj };
629
- if (newObj.model === 'gpt-3.5-turbo') {
630
- delete newObj.model;
631
- }
632
615
  if (newObj.chatGptLabel === null) {
633
616
  delete newObj.chatGptLabel;
634
617
  }