librechat-data-provider 0.3.7 → 0.3.8

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/package.json +1 -1
  2. package/src/types.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "librechat-data-provider",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "data services for librechat apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import OpenAI from 'openai';
2
- import type { TResPlugin, TMessage, TConversation, EModelEndpoint } from './schemas';
2
+ import type { TResPlugin, TMessage, TConversation, EModelEndpoint, ImageDetail } from './schemas';
3
3
 
4
4
  export type TOpenAIMessage = OpenAI.Chat.ChatCompletionMessageParam;
5
5
  export type TOpenAIFunction = OpenAI.Chat.ChatCompletionCreateParams.Function;
@@ -11,10 +11,13 @@ export type TMessages = TMessage[];
11
11
 
12
12
  export type TMessagesAtom = TMessages | null;
13
13
 
14
+ /* TODO: Cleanup EndpointOption types */
14
15
  export type TEndpointOption = {
15
16
  endpoint: EModelEndpoint;
16
17
  endpointType?: EModelEndpoint;
17
18
  modelDisplayLabel?: string;
19
+ resendImages?: boolean;
20
+ imageDetail?: ImageDetail;
18
21
  model?: string | null;
19
22
  promptPrefix?: string;
20
23
  temperature?: number;