librechat-data-provider 0.2.1 → 0.3.0

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.
@@ -1,1763 +0,0 @@
1
- import { z } from 'zod';
2
- export declare enum EModelEndpoint {
3
- azureOpenAI = "azureOpenAI",
4
- openAI = "openAI",
5
- bingAI = "bingAI",
6
- chatGPTBrowser = "chatGPTBrowser",
7
- google = "google",
8
- gptPlugins = "gptPlugins",
9
- anthropic = "anthropic"
10
- }
11
- export declare const eModelEndpointSchema: z.ZodNativeEnum<typeof EModelEndpoint>;
12
- export declare const tPluginAuthConfigSchema: z.ZodObject<{
13
- authField: z.ZodString;
14
- label: z.ZodString;
15
- description: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- authField: string;
18
- label: string;
19
- description: string;
20
- }, {
21
- authField: string;
22
- label: string;
23
- description: string;
24
- }>;
25
- export type TPluginAuthConfig = z.infer<typeof tPluginAuthConfigSchema>;
26
- export declare const tPluginSchema: z.ZodObject<{
27
- name: z.ZodString;
28
- pluginKey: z.ZodString;
29
- description: z.ZodString;
30
- icon: z.ZodString;
31
- authConfig: z.ZodArray<z.ZodObject<{
32
- authField: z.ZodString;
33
- label: z.ZodString;
34
- description: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- authField: string;
37
- label: string;
38
- description: string;
39
- }, {
40
- authField: string;
41
- label: string;
42
- description: string;
43
- }>, "many">;
44
- authenticated: z.ZodOptional<z.ZodBoolean>;
45
- isButton: z.ZodOptional<z.ZodBoolean>;
46
- }, "strip", z.ZodTypeAny, {
47
- description: string;
48
- name: string;
49
- pluginKey: string;
50
- icon: string;
51
- authConfig: {
52
- authField: string;
53
- label: string;
54
- description: string;
55
- }[];
56
- authenticated?: boolean | undefined;
57
- isButton?: boolean | undefined;
58
- }, {
59
- description: string;
60
- name: string;
61
- pluginKey: string;
62
- icon: string;
63
- authConfig: {
64
- authField: string;
65
- label: string;
66
- description: string;
67
- }[];
68
- authenticated?: boolean | undefined;
69
- isButton?: boolean | undefined;
70
- }>;
71
- export type TPlugin = z.infer<typeof tPluginSchema>;
72
- export type TInput = {
73
- inputStr: string;
74
- };
75
- export type TResPlugin = {
76
- plugin: string;
77
- input: string;
78
- thought: string;
79
- loading?: boolean;
80
- outputs?: string;
81
- latest?: string;
82
- inputs?: TInput[];
83
- };
84
- export declare const tExampleSchema: z.ZodObject<{
85
- input: z.ZodObject<{
86
- content: z.ZodString;
87
- }, "strip", z.ZodTypeAny, {
88
- content: string;
89
- }, {
90
- content: string;
91
- }>;
92
- output: z.ZodObject<{
93
- content: z.ZodString;
94
- }, "strip", z.ZodTypeAny, {
95
- content: string;
96
- }, {
97
- content: string;
98
- }>;
99
- }, "strip", z.ZodTypeAny, {
100
- input: {
101
- content: string;
102
- };
103
- output: {
104
- content: string;
105
- };
106
- }, {
107
- input: {
108
- content: string;
109
- };
110
- output: {
111
- content: string;
112
- };
113
- }>;
114
- export type TExample = z.infer<typeof tExampleSchema>;
115
- export declare const tAgentOptionsSchema: z.ZodObject<{
116
- agent: z.ZodString;
117
- skipCompletion: z.ZodBoolean;
118
- model: z.ZodString;
119
- temperature: z.ZodNumber;
120
- }, "strip", z.ZodTypeAny, {
121
- agent: string;
122
- skipCompletion: boolean;
123
- model: string;
124
- temperature: number;
125
- }, {
126
- agent: string;
127
- skipCompletion: boolean;
128
- model: string;
129
- temperature: number;
130
- }>;
131
- export declare const tMessageSchema: z.ZodObject<{
132
- messageId: z.ZodString;
133
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
- conversationId: z.ZodNullable<z.ZodString>;
135
- parentMessageId: z.ZodNullable<z.ZodString>;
136
- responseMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
- overrideParentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- bg: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
141
- sender: z.ZodString;
142
- text: z.ZodString;
143
- generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
- isEdited: z.ZodOptional<z.ZodBoolean>;
145
- isCreatedByUser: z.ZodBoolean;
146
- error: z.ZodBoolean;
147
- createdAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
148
- updatedAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
149
- current: z.ZodOptional<z.ZodBoolean>;
150
- unfinished: z.ZodOptional<z.ZodBoolean>;
151
- submitting: z.ZodOptional<z.ZodBoolean>;
152
- searchResult: z.ZodOptional<z.ZodBoolean>;
153
- finish_reason: z.ZodOptional<z.ZodString>;
154
- }, "strip", z.ZodTypeAny, {
155
- error: boolean;
156
- messageId: string;
157
- conversationId: string | null;
158
- parentMessageId: string | null;
159
- title: string | null;
160
- sender: string;
161
- text: string;
162
- isCreatedByUser: boolean;
163
- createdAt: string;
164
- updatedAt: string;
165
- clientId?: string | null | undefined;
166
- responseMessageId?: string | null | undefined;
167
- overrideParentMessageId?: string | null | undefined;
168
- bg?: string | null | undefined;
169
- model?: string | null | undefined;
170
- generation?: string | null | undefined;
171
- isEdited?: boolean | undefined;
172
- current?: boolean | undefined;
173
- unfinished?: boolean | undefined;
174
- submitting?: boolean | undefined;
175
- searchResult?: boolean | undefined;
176
- finish_reason?: string | undefined;
177
- }, {
178
- error: boolean;
179
- messageId: string;
180
- conversationId: string | null;
181
- parentMessageId: string | null;
182
- sender: string;
183
- text: string;
184
- isCreatedByUser: boolean;
185
- clientId?: string | null | undefined;
186
- responseMessageId?: string | null | undefined;
187
- overrideParentMessageId?: string | null | undefined;
188
- bg?: string | null | undefined;
189
- model?: string | null | undefined;
190
- title?: string | null | undefined;
191
- generation?: string | null | undefined;
192
- isEdited?: boolean | undefined;
193
- createdAt?: string | undefined;
194
- updatedAt?: string | undefined;
195
- current?: boolean | undefined;
196
- unfinished?: boolean | undefined;
197
- submitting?: boolean | undefined;
198
- searchResult?: boolean | undefined;
199
- finish_reason?: string | undefined;
200
- }>;
201
- export type TMessage = z.input<typeof tMessageSchema> & {
202
- children?: TMessage[];
203
- plugin?: TResPlugin | null;
204
- plugins?: TResPlugin[];
205
- };
206
- export declare const tConversationSchema: z.ZodObject<{
207
- conversationId: z.ZodNullable<z.ZodString>;
208
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
209
- user: z.ZodOptional<z.ZodString>;
210
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
211
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
- name: z.ZodString;
215
- pluginKey: z.ZodString;
216
- description: z.ZodString;
217
- icon: z.ZodString;
218
- authConfig: z.ZodArray<z.ZodObject<{
219
- authField: z.ZodString;
220
- label: z.ZodString;
221
- description: z.ZodString;
222
- }, "strip", z.ZodTypeAny, {
223
- authField: string;
224
- label: string;
225
- description: string;
226
- }, {
227
- authField: string;
228
- label: string;
229
- description: string;
230
- }>, "many">;
231
- authenticated: z.ZodOptional<z.ZodBoolean>;
232
- isButton: z.ZodOptional<z.ZodBoolean>;
233
- }, "strip", z.ZodTypeAny, {
234
- description: string;
235
- name: string;
236
- pluginKey: string;
237
- icon: string;
238
- authConfig: {
239
- authField: string;
240
- label: string;
241
- description: string;
242
- }[];
243
- authenticated?: boolean | undefined;
244
- isButton?: boolean | undefined;
245
- }, {
246
- description: string;
247
- name: string;
248
- pluginKey: string;
249
- icon: string;
250
- authConfig: {
251
- authField: string;
252
- label: string;
253
- description: string;
254
- }[];
255
- authenticated?: boolean | undefined;
256
- isButton?: boolean | undefined;
257
- }>, "many">>;
258
- createdAt: z.ZodString;
259
- updatedAt: z.ZodString;
260
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
263
- input: z.ZodObject<{
264
- content: z.ZodString;
265
- }, "strip", z.ZodTypeAny, {
266
- content: string;
267
- }, {
268
- content: string;
269
- }>;
270
- output: z.ZodObject<{
271
- content: z.ZodString;
272
- }, "strip", z.ZodTypeAny, {
273
- content: string;
274
- }, {
275
- content: string;
276
- }>;
277
- }, "strip", z.ZodTypeAny, {
278
- input: {
279
- content: string;
280
- };
281
- output: {
282
- content: string;
283
- };
284
- }, {
285
- input: {
286
- content: string;
287
- };
288
- output: {
289
- content: string;
290
- };
291
- }>, "many">>;
292
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
- userLabel: z.ZodOptional<z.ZodString>;
294
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
- temperature: z.ZodOptional<z.ZodNumber>;
297
- topP: z.ZodOptional<z.ZodNumber>;
298
- topK: z.ZodOptional<z.ZodNumber>;
299
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
- top_p: z.ZodOptional<z.ZodNumber>;
301
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
302
- presence_penalty: z.ZodOptional<z.ZodNumber>;
303
- jailbreak: z.ZodOptional<z.ZodBoolean>;
304
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
- parentMessageId: z.ZodOptional<z.ZodString>;
307
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
309
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
311
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
312
- agent: z.ZodString;
313
- skipCompletion: z.ZodBoolean;
314
- model: z.ZodString;
315
- temperature: z.ZodNumber;
316
- }, "strip", z.ZodTypeAny, {
317
- agent: string;
318
- skipCompletion: boolean;
319
- model: string;
320
- temperature: number;
321
- }, {
322
- agent: string;
323
- skipCompletion: boolean;
324
- model: string;
325
- temperature: number;
326
- }>>>;
327
- }, "strip", z.ZodTypeAny, {
328
- conversationId: string | null;
329
- title: string | null;
330
- createdAt: string;
331
- updatedAt: string;
332
- endpoint: EModelEndpoint | null;
333
- user?: string | undefined;
334
- suggestions?: string[] | undefined;
335
- messages?: string[] | undefined;
336
- tools?: {
337
- description: string;
338
- name: string;
339
- pluginKey: string;
340
- icon: string;
341
- authConfig: {
342
- authField: string;
343
- label: string;
344
- description: string;
345
- }[];
346
- authenticated?: boolean | undefined;
347
- isButton?: boolean | undefined;
348
- }[] | undefined;
349
- systemMessage?: string | null | undefined;
350
- modelLabel?: string | null | undefined;
351
- examples?: {
352
- input: {
353
- content: string;
354
- };
355
- output: {
356
- content: string;
357
- };
358
- }[] | undefined;
359
- chatGptLabel?: string | null | undefined;
360
- userLabel?: string | undefined;
361
- model?: string | null | undefined;
362
- promptPrefix?: string | null | undefined;
363
- temperature?: number | undefined;
364
- topP?: number | undefined;
365
- topK?: number | undefined;
366
- context?: string | null | undefined;
367
- top_p?: number | undefined;
368
- frequency_penalty?: number | undefined;
369
- presence_penalty?: number | undefined;
370
- jailbreak?: boolean | undefined;
371
- jailbreakConversationId?: string | null | undefined;
372
- conversationSignature?: string | null | undefined;
373
- parentMessageId?: string | undefined;
374
- clientId?: string | null | undefined;
375
- invocationId?: number | null | undefined;
376
- toneStyle?: string | null | undefined;
377
- maxOutputTokens?: number | undefined;
378
- agentOptions?: {
379
- agent: string;
380
- skipCompletion: boolean;
381
- model: string;
382
- temperature: number;
383
- } | null | undefined;
384
- }, {
385
- conversationId: string | null;
386
- createdAt: string;
387
- updatedAt: string;
388
- endpoint: EModelEndpoint | null;
389
- title?: string | null | undefined;
390
- user?: string | undefined;
391
- suggestions?: string[] | undefined;
392
- messages?: string[] | undefined;
393
- tools?: {
394
- description: string;
395
- name: string;
396
- pluginKey: string;
397
- icon: string;
398
- authConfig: {
399
- authField: string;
400
- label: string;
401
- description: string;
402
- }[];
403
- authenticated?: boolean | undefined;
404
- isButton?: boolean | undefined;
405
- }[] | undefined;
406
- systemMessage?: string | null | undefined;
407
- modelLabel?: string | null | undefined;
408
- examples?: {
409
- input: {
410
- content: string;
411
- };
412
- output: {
413
- content: string;
414
- };
415
- }[] | undefined;
416
- chatGptLabel?: string | null | undefined;
417
- userLabel?: string | undefined;
418
- model?: string | null | undefined;
419
- promptPrefix?: string | null | undefined;
420
- temperature?: number | undefined;
421
- topP?: number | undefined;
422
- topK?: number | undefined;
423
- context?: string | null | undefined;
424
- top_p?: number | undefined;
425
- frequency_penalty?: number | undefined;
426
- presence_penalty?: number | undefined;
427
- jailbreak?: boolean | undefined;
428
- jailbreakConversationId?: string | null | undefined;
429
- conversationSignature?: string | null | undefined;
430
- parentMessageId?: string | undefined;
431
- clientId?: string | null | undefined;
432
- invocationId?: number | null | undefined;
433
- toneStyle?: string | null | undefined;
434
- maxOutputTokens?: number | undefined;
435
- agentOptions?: {
436
- agent: string;
437
- skipCompletion: boolean;
438
- model: string;
439
- temperature: number;
440
- } | null | undefined;
441
- }>;
442
- export type TConversation = z.infer<typeof tConversationSchema>;
443
- export declare const tPresetSchema: z.ZodObject<{
444
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- temperature: z.ZodOptional<z.ZodNumber>;
446
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
- parentMessageId: z.ZodOptional<z.ZodString>;
448
- user: z.ZodOptional<z.ZodString>;
449
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
450
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
451
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
453
- name: z.ZodString;
454
- pluginKey: z.ZodString;
455
- description: z.ZodString;
456
- icon: z.ZodString;
457
- authConfig: z.ZodArray<z.ZodObject<{
458
- authField: z.ZodString;
459
- label: z.ZodString;
460
- description: z.ZodString;
461
- }, "strip", z.ZodTypeAny, {
462
- authField: string;
463
- label: string;
464
- description: string;
465
- }, {
466
- authField: string;
467
- label: string;
468
- description: string;
469
- }>, "many">;
470
- authenticated: z.ZodOptional<z.ZodBoolean>;
471
- isButton: z.ZodOptional<z.ZodBoolean>;
472
- }, "strip", z.ZodTypeAny, {
473
- description: string;
474
- name: string;
475
- pluginKey: string;
476
- icon: string;
477
- authConfig: {
478
- authField: string;
479
- label: string;
480
- description: string;
481
- }[];
482
- authenticated?: boolean | undefined;
483
- isButton?: boolean | undefined;
484
- }, {
485
- description: string;
486
- name: string;
487
- pluginKey: string;
488
- icon: string;
489
- authConfig: {
490
- authField: string;
491
- label: string;
492
- description: string;
493
- }[];
494
- authenticated?: boolean | undefined;
495
- isButton?: boolean | undefined;
496
- }>, "many">>;
497
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
500
- input: z.ZodObject<{
501
- content: z.ZodString;
502
- }, "strip", z.ZodTypeAny, {
503
- content: string;
504
- }, {
505
- content: string;
506
- }>;
507
- output: z.ZodObject<{
508
- content: z.ZodString;
509
- }, "strip", z.ZodTypeAny, {
510
- content: string;
511
- }, {
512
- content: string;
513
- }>;
514
- }, "strip", z.ZodTypeAny, {
515
- input: {
516
- content: string;
517
- };
518
- output: {
519
- content: string;
520
- };
521
- }, {
522
- input: {
523
- content: string;
524
- };
525
- output: {
526
- content: string;
527
- };
528
- }>, "many">>;
529
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
530
- userLabel: z.ZodOptional<z.ZodString>;
531
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
- topP: z.ZodOptional<z.ZodNumber>;
533
- topK: z.ZodOptional<z.ZodNumber>;
534
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
- top_p: z.ZodOptional<z.ZodNumber>;
536
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
537
- presence_penalty: z.ZodOptional<z.ZodNumber>;
538
- jailbreak: z.ZodOptional<z.ZodBoolean>;
539
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
542
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
544
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
545
- agent: z.ZodString;
546
- skipCompletion: z.ZodBoolean;
547
- model: z.ZodString;
548
- temperature: z.ZodNumber;
549
- }, "strip", z.ZodTypeAny, {
550
- agent: string;
551
- skipCompletion: boolean;
552
- model: string;
553
- temperature: number;
554
- }, {
555
- agent: string;
556
- skipCompletion: boolean;
557
- model: string;
558
- temperature: number;
559
- }>>>;
560
- conversationId: z.ZodOptional<z.ZodString>;
561
- presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
- }, "strip", z.ZodTypeAny, {
564
- endpoint: EModelEndpoint | null;
565
- model?: string | null | undefined;
566
- temperature?: number | undefined;
567
- clientId?: string | null | undefined;
568
- parentMessageId?: string | undefined;
569
- user?: string | undefined;
570
- suggestions?: string[] | undefined;
571
- messages?: string[] | undefined;
572
- tools?: {
573
- description: string;
574
- name: string;
575
- pluginKey: string;
576
- icon: string;
577
- authConfig: {
578
- authField: string;
579
- label: string;
580
- description: string;
581
- }[];
582
- authenticated?: boolean | undefined;
583
- isButton?: boolean | undefined;
584
- }[] | undefined;
585
- systemMessage?: string | null | undefined;
586
- modelLabel?: string | null | undefined;
587
- examples?: {
588
- input: {
589
- content: string;
590
- };
591
- output: {
592
- content: string;
593
- };
594
- }[] | undefined;
595
- chatGptLabel?: string | null | undefined;
596
- userLabel?: string | undefined;
597
- promptPrefix?: string | null | undefined;
598
- topP?: number | undefined;
599
- topK?: number | undefined;
600
- context?: string | null | undefined;
601
- top_p?: number | undefined;
602
- frequency_penalty?: number | undefined;
603
- presence_penalty?: number | undefined;
604
- jailbreak?: boolean | undefined;
605
- jailbreakConversationId?: string | null | undefined;
606
- conversationSignature?: string | null | undefined;
607
- invocationId?: number | null | undefined;
608
- toneStyle?: string | null | undefined;
609
- maxOutputTokens?: number | undefined;
610
- agentOptions?: {
611
- agent: string;
612
- skipCompletion: boolean;
613
- model: string;
614
- temperature: number;
615
- } | null | undefined;
616
- conversationId?: string | undefined;
617
- presetId?: string | null | undefined;
618
- title?: string | null | undefined;
619
- }, {
620
- endpoint: EModelEndpoint | null;
621
- model?: string | null | undefined;
622
- temperature?: number | undefined;
623
- clientId?: string | null | undefined;
624
- parentMessageId?: string | undefined;
625
- user?: string | undefined;
626
- suggestions?: string[] | undefined;
627
- messages?: string[] | undefined;
628
- tools?: {
629
- description: string;
630
- name: string;
631
- pluginKey: string;
632
- icon: string;
633
- authConfig: {
634
- authField: string;
635
- label: string;
636
- description: string;
637
- }[];
638
- authenticated?: boolean | undefined;
639
- isButton?: boolean | undefined;
640
- }[] | undefined;
641
- systemMessage?: string | null | undefined;
642
- modelLabel?: string | null | undefined;
643
- examples?: {
644
- input: {
645
- content: string;
646
- };
647
- output: {
648
- content: string;
649
- };
650
- }[] | undefined;
651
- chatGptLabel?: string | null | undefined;
652
- userLabel?: string | undefined;
653
- promptPrefix?: string | null | undefined;
654
- topP?: number | undefined;
655
- topK?: number | undefined;
656
- context?: string | null | undefined;
657
- top_p?: number | undefined;
658
- frequency_penalty?: number | undefined;
659
- presence_penalty?: number | undefined;
660
- jailbreak?: boolean | undefined;
661
- jailbreakConversationId?: string | null | undefined;
662
- conversationSignature?: string | null | undefined;
663
- invocationId?: number | null | undefined;
664
- toneStyle?: string | null | undefined;
665
- maxOutputTokens?: number | undefined;
666
- agentOptions?: {
667
- agent: string;
668
- skipCompletion: boolean;
669
- model: string;
670
- temperature: number;
671
- } | null | undefined;
672
- conversationId?: string | undefined;
673
- presetId?: string | null | undefined;
674
- title?: string | null | undefined;
675
- }>;
676
- export type TPreset = z.infer<typeof tPresetSchema>;
677
- export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
678
- conversationId: z.ZodNullable<z.ZodString>;
679
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
680
- user: z.ZodOptional<z.ZodString>;
681
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
682
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
683
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
684
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
- name: z.ZodString;
686
- pluginKey: z.ZodString;
687
- description: z.ZodString;
688
- icon: z.ZodString;
689
- authConfig: z.ZodArray<z.ZodObject<{
690
- authField: z.ZodString;
691
- label: z.ZodString;
692
- description: z.ZodString;
693
- }, "strip", z.ZodTypeAny, {
694
- authField: string;
695
- label: string;
696
- description: string;
697
- }, {
698
- authField: string;
699
- label: string;
700
- description: string;
701
- }>, "many">;
702
- authenticated: z.ZodOptional<z.ZodBoolean>;
703
- isButton: z.ZodOptional<z.ZodBoolean>;
704
- }, "strip", z.ZodTypeAny, {
705
- description: string;
706
- name: string;
707
- pluginKey: string;
708
- icon: string;
709
- authConfig: {
710
- authField: string;
711
- label: string;
712
- description: string;
713
- }[];
714
- authenticated?: boolean | undefined;
715
- isButton?: boolean | undefined;
716
- }, {
717
- description: string;
718
- name: string;
719
- pluginKey: string;
720
- icon: string;
721
- authConfig: {
722
- authField: string;
723
- label: string;
724
- description: string;
725
- }[];
726
- authenticated?: boolean | undefined;
727
- isButton?: boolean | undefined;
728
- }>, "many">>;
729
- createdAt: z.ZodString;
730
- updatedAt: z.ZodString;
731
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
734
- input: z.ZodObject<{
735
- content: z.ZodString;
736
- }, "strip", z.ZodTypeAny, {
737
- content: string;
738
- }, {
739
- content: string;
740
- }>;
741
- output: z.ZodObject<{
742
- content: z.ZodString;
743
- }, "strip", z.ZodTypeAny, {
744
- content: string;
745
- }, {
746
- content: string;
747
- }>;
748
- }, "strip", z.ZodTypeAny, {
749
- input: {
750
- content: string;
751
- };
752
- output: {
753
- content: string;
754
- };
755
- }, {
756
- input: {
757
- content: string;
758
- };
759
- output: {
760
- content: string;
761
- };
762
- }>, "many">>;
763
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
- userLabel: z.ZodOptional<z.ZodString>;
765
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
- temperature: z.ZodOptional<z.ZodNumber>;
768
- topP: z.ZodOptional<z.ZodNumber>;
769
- topK: z.ZodOptional<z.ZodNumber>;
770
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
- top_p: z.ZodOptional<z.ZodNumber>;
772
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
773
- presence_penalty: z.ZodOptional<z.ZodNumber>;
774
- jailbreak: z.ZodOptional<z.ZodBoolean>;
775
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
776
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
- parentMessageId: z.ZodOptional<z.ZodString>;
778
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
780
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
781
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
782
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
783
- agent: z.ZodString;
784
- skipCompletion: z.ZodBoolean;
785
- model: z.ZodString;
786
- temperature: z.ZodNumber;
787
- }, "strip", z.ZodTypeAny, {
788
- agent: string;
789
- skipCompletion: boolean;
790
- model: string;
791
- temperature: number;
792
- }, {
793
- agent: string;
794
- skipCompletion: boolean;
795
- model: string;
796
- temperature: number;
797
- }>>>;
798
- }, "model" | "temperature" | "chatGptLabel" | "promptPrefix" | "top_p" | "frequency_penalty" | "presence_penalty">, "strip", z.ZodTypeAny, {
799
- model?: string | null | undefined;
800
- temperature?: number | undefined;
801
- chatGptLabel?: string | null | undefined;
802
- promptPrefix?: string | null | undefined;
803
- top_p?: number | undefined;
804
- frequency_penalty?: number | undefined;
805
- presence_penalty?: number | undefined;
806
- }, {
807
- model?: string | null | undefined;
808
- temperature?: number | undefined;
809
- chatGptLabel?: string | null | undefined;
810
- promptPrefix?: string | null | undefined;
811
- top_p?: number | undefined;
812
- frequency_penalty?: number | undefined;
813
- presence_penalty?: number | undefined;
814
- }>, {
815
- model: string;
816
- chatGptLabel: string | null;
817
- promptPrefix: string | null;
818
- temperature: number;
819
- top_p: number;
820
- presence_penalty: number;
821
- frequency_penalty: number;
822
- }, {
823
- model?: string | null | undefined;
824
- temperature?: number | undefined;
825
- chatGptLabel?: string | null | undefined;
826
- promptPrefix?: string | null | undefined;
827
- top_p?: number | undefined;
828
- frequency_penalty?: number | undefined;
829
- presence_penalty?: number | undefined;
830
- }>>;
831
- export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
832
- conversationId: z.ZodNullable<z.ZodString>;
833
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
834
- user: z.ZodOptional<z.ZodString>;
835
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
836
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
837
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
838
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
- name: z.ZodString;
840
- pluginKey: z.ZodString;
841
- description: z.ZodString;
842
- icon: z.ZodString;
843
- authConfig: z.ZodArray<z.ZodObject<{
844
- authField: z.ZodString;
845
- label: z.ZodString;
846
- description: z.ZodString;
847
- }, "strip", z.ZodTypeAny, {
848
- authField: string;
849
- label: string;
850
- description: string;
851
- }, {
852
- authField: string;
853
- label: string;
854
- description: string;
855
- }>, "many">;
856
- authenticated: z.ZodOptional<z.ZodBoolean>;
857
- isButton: z.ZodOptional<z.ZodBoolean>;
858
- }, "strip", z.ZodTypeAny, {
859
- description: string;
860
- name: string;
861
- pluginKey: string;
862
- icon: string;
863
- authConfig: {
864
- authField: string;
865
- label: string;
866
- description: string;
867
- }[];
868
- authenticated?: boolean | undefined;
869
- isButton?: boolean | undefined;
870
- }, {
871
- description: string;
872
- name: string;
873
- pluginKey: string;
874
- icon: string;
875
- authConfig: {
876
- authField: string;
877
- label: string;
878
- description: string;
879
- }[];
880
- authenticated?: boolean | undefined;
881
- isButton?: boolean | undefined;
882
- }>, "many">>;
883
- createdAt: z.ZodString;
884
- updatedAt: z.ZodString;
885
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
888
- input: z.ZodObject<{
889
- content: z.ZodString;
890
- }, "strip", z.ZodTypeAny, {
891
- content: string;
892
- }, {
893
- content: string;
894
- }>;
895
- output: z.ZodObject<{
896
- content: z.ZodString;
897
- }, "strip", z.ZodTypeAny, {
898
- content: string;
899
- }, {
900
- content: string;
901
- }>;
902
- }, "strip", z.ZodTypeAny, {
903
- input: {
904
- content: string;
905
- };
906
- output: {
907
- content: string;
908
- };
909
- }, {
910
- input: {
911
- content: string;
912
- };
913
- output: {
914
- content: string;
915
- };
916
- }>, "many">>;
917
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
918
- userLabel: z.ZodOptional<z.ZodString>;
919
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
920
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
921
- temperature: z.ZodOptional<z.ZodNumber>;
922
- topP: z.ZodOptional<z.ZodNumber>;
923
- topK: z.ZodOptional<z.ZodNumber>;
924
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
- top_p: z.ZodOptional<z.ZodNumber>;
926
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
927
- presence_penalty: z.ZodOptional<z.ZodNumber>;
928
- jailbreak: z.ZodOptional<z.ZodBoolean>;
929
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
- parentMessageId: z.ZodOptional<z.ZodString>;
932
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
934
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
935
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
936
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
937
- agent: z.ZodString;
938
- skipCompletion: z.ZodBoolean;
939
- model: z.ZodString;
940
- temperature: z.ZodNumber;
941
- }, "strip", z.ZodTypeAny, {
942
- agent: string;
943
- skipCompletion: boolean;
944
- model: string;
945
- temperature: number;
946
- }, {
947
- agent: string;
948
- skipCompletion: boolean;
949
- model: string;
950
- temperature: number;
951
- }>>>;
952
- }, "model" | "temperature" | "modelLabel" | "examples" | "promptPrefix" | "topP" | "topK" | "maxOutputTokens">, "strip", z.ZodTypeAny, {
953
- model?: string | null | undefined;
954
- temperature?: number | undefined;
955
- modelLabel?: string | null | undefined;
956
- examples?: {
957
- input: {
958
- content: string;
959
- };
960
- output: {
961
- content: string;
962
- };
963
- }[] | undefined;
964
- promptPrefix?: string | null | undefined;
965
- topP?: number | undefined;
966
- topK?: number | undefined;
967
- maxOutputTokens?: number | undefined;
968
- }, {
969
- model?: string | null | undefined;
970
- temperature?: number | undefined;
971
- modelLabel?: string | null | undefined;
972
- examples?: {
973
- input: {
974
- content: string;
975
- };
976
- output: {
977
- content: string;
978
- };
979
- }[] | undefined;
980
- promptPrefix?: string | null | undefined;
981
- topP?: number | undefined;
982
- topK?: number | undefined;
983
- maxOutputTokens?: number | undefined;
984
- }>, {
985
- model: string;
986
- modelLabel: string | null;
987
- promptPrefix: string | null;
988
- temperature: number;
989
- maxOutputTokens: number;
990
- topP: number;
991
- topK: number;
992
- examples?: {
993
- input: {
994
- content: string;
995
- };
996
- output: {
997
- content: string;
998
- };
999
- }[] | undefined;
1000
- }, {
1001
- model?: string | null | undefined;
1002
- temperature?: number | undefined;
1003
- modelLabel?: string | null | undefined;
1004
- examples?: {
1005
- input: {
1006
- content: string;
1007
- };
1008
- output: {
1009
- content: string;
1010
- };
1011
- }[] | undefined;
1012
- promptPrefix?: string | null | undefined;
1013
- topP?: number | undefined;
1014
- topK?: number | undefined;
1015
- maxOutputTokens?: number | undefined;
1016
- }>>;
1017
- export declare const bingAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
1018
- conversationId: z.ZodNullable<z.ZodString>;
1019
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1020
- user: z.ZodOptional<z.ZodString>;
1021
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1022
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1023
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1024
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1025
- name: z.ZodString;
1026
- pluginKey: z.ZodString;
1027
- description: z.ZodString;
1028
- icon: z.ZodString;
1029
- authConfig: z.ZodArray<z.ZodObject<{
1030
- authField: z.ZodString;
1031
- label: z.ZodString;
1032
- description: z.ZodString;
1033
- }, "strip", z.ZodTypeAny, {
1034
- authField: string;
1035
- label: string;
1036
- description: string;
1037
- }, {
1038
- authField: string;
1039
- label: string;
1040
- description: string;
1041
- }>, "many">;
1042
- authenticated: z.ZodOptional<z.ZodBoolean>;
1043
- isButton: z.ZodOptional<z.ZodBoolean>;
1044
- }, "strip", z.ZodTypeAny, {
1045
- description: string;
1046
- name: string;
1047
- pluginKey: string;
1048
- icon: string;
1049
- authConfig: {
1050
- authField: string;
1051
- label: string;
1052
- description: string;
1053
- }[];
1054
- authenticated?: boolean | undefined;
1055
- isButton?: boolean | undefined;
1056
- }, {
1057
- description: string;
1058
- name: string;
1059
- pluginKey: string;
1060
- icon: string;
1061
- authConfig: {
1062
- authField: string;
1063
- label: string;
1064
- description: string;
1065
- }[];
1066
- authenticated?: boolean | undefined;
1067
- isButton?: boolean | undefined;
1068
- }>, "many">>;
1069
- createdAt: z.ZodString;
1070
- updatedAt: z.ZodString;
1071
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1073
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1074
- input: z.ZodObject<{
1075
- content: z.ZodString;
1076
- }, "strip", z.ZodTypeAny, {
1077
- content: string;
1078
- }, {
1079
- content: string;
1080
- }>;
1081
- output: z.ZodObject<{
1082
- content: z.ZodString;
1083
- }, "strip", z.ZodTypeAny, {
1084
- content: string;
1085
- }, {
1086
- content: string;
1087
- }>;
1088
- }, "strip", z.ZodTypeAny, {
1089
- input: {
1090
- content: string;
1091
- };
1092
- output: {
1093
- content: string;
1094
- };
1095
- }, {
1096
- input: {
1097
- content: string;
1098
- };
1099
- output: {
1100
- content: string;
1101
- };
1102
- }>, "many">>;
1103
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1104
- userLabel: z.ZodOptional<z.ZodString>;
1105
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1106
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1107
- temperature: z.ZodOptional<z.ZodNumber>;
1108
- topP: z.ZodOptional<z.ZodNumber>;
1109
- topK: z.ZodOptional<z.ZodNumber>;
1110
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1111
- top_p: z.ZodOptional<z.ZodNumber>;
1112
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
1113
- presence_penalty: z.ZodOptional<z.ZodNumber>;
1114
- jailbreak: z.ZodOptional<z.ZodBoolean>;
1115
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
- parentMessageId: z.ZodOptional<z.ZodString>;
1118
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1119
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1120
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1122
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1123
- agent: z.ZodString;
1124
- skipCompletion: z.ZodBoolean;
1125
- model: z.ZodString;
1126
- temperature: z.ZodNumber;
1127
- }, "strip", z.ZodTypeAny, {
1128
- agent: string;
1129
- skipCompletion: boolean;
1130
- model: string;
1131
- temperature: number;
1132
- }, {
1133
- agent: string;
1134
- skipCompletion: boolean;
1135
- model: string;
1136
- temperature: number;
1137
- }>>>;
1138
- }, "clientId" | "systemMessage" | "context" | "jailbreak" | "jailbreakConversationId" | "conversationSignature" | "invocationId" | "toneStyle">, "strip", z.ZodTypeAny, {
1139
- clientId?: string | null | undefined;
1140
- systemMessage?: string | null | undefined;
1141
- context?: string | null | undefined;
1142
- jailbreak?: boolean | undefined;
1143
- jailbreakConversationId?: string | null | undefined;
1144
- conversationSignature?: string | null | undefined;
1145
- invocationId?: number | null | undefined;
1146
- toneStyle?: string | null | undefined;
1147
- }, {
1148
- clientId?: string | null | undefined;
1149
- systemMessage?: string | null | undefined;
1150
- context?: string | null | undefined;
1151
- jailbreak?: boolean | undefined;
1152
- jailbreakConversationId?: string | null | undefined;
1153
- conversationSignature?: string | null | undefined;
1154
- invocationId?: number | null | undefined;
1155
- toneStyle?: string | null | undefined;
1156
- }>, {
1157
- model: string;
1158
- jailbreak: boolean;
1159
- systemMessage: string | null;
1160
- context: string | null;
1161
- toneStyle: string;
1162
- jailbreakConversationId: string | null;
1163
- conversationSignature: string | null;
1164
- clientId: string | null;
1165
- invocationId: number;
1166
- }, {
1167
- clientId?: string | null | undefined;
1168
- systemMessage?: string | null | undefined;
1169
- context?: string | null | undefined;
1170
- jailbreak?: boolean | undefined;
1171
- jailbreakConversationId?: string | null | undefined;
1172
- conversationSignature?: string | null | undefined;
1173
- invocationId?: number | null | undefined;
1174
- toneStyle?: string | null | undefined;
1175
- }>>;
1176
- export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
1177
- conversationId: z.ZodNullable<z.ZodString>;
1178
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1179
- user: z.ZodOptional<z.ZodString>;
1180
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1181
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1183
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1184
- name: z.ZodString;
1185
- pluginKey: z.ZodString;
1186
- description: z.ZodString;
1187
- icon: z.ZodString;
1188
- authConfig: z.ZodArray<z.ZodObject<{
1189
- authField: z.ZodString;
1190
- label: z.ZodString;
1191
- description: z.ZodString;
1192
- }, "strip", z.ZodTypeAny, {
1193
- authField: string;
1194
- label: string;
1195
- description: string;
1196
- }, {
1197
- authField: string;
1198
- label: string;
1199
- description: string;
1200
- }>, "many">;
1201
- authenticated: z.ZodOptional<z.ZodBoolean>;
1202
- isButton: z.ZodOptional<z.ZodBoolean>;
1203
- }, "strip", z.ZodTypeAny, {
1204
- description: string;
1205
- name: string;
1206
- pluginKey: string;
1207
- icon: string;
1208
- authConfig: {
1209
- authField: string;
1210
- label: string;
1211
- description: string;
1212
- }[];
1213
- authenticated?: boolean | undefined;
1214
- isButton?: boolean | undefined;
1215
- }, {
1216
- description: string;
1217
- name: string;
1218
- pluginKey: string;
1219
- icon: string;
1220
- authConfig: {
1221
- authField: string;
1222
- label: string;
1223
- description: string;
1224
- }[];
1225
- authenticated?: boolean | undefined;
1226
- isButton?: boolean | undefined;
1227
- }>, "many">>;
1228
- createdAt: z.ZodString;
1229
- updatedAt: z.ZodString;
1230
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1232
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1233
- input: z.ZodObject<{
1234
- content: z.ZodString;
1235
- }, "strip", z.ZodTypeAny, {
1236
- content: string;
1237
- }, {
1238
- content: string;
1239
- }>;
1240
- output: z.ZodObject<{
1241
- content: z.ZodString;
1242
- }, "strip", z.ZodTypeAny, {
1243
- content: string;
1244
- }, {
1245
- content: string;
1246
- }>;
1247
- }, "strip", z.ZodTypeAny, {
1248
- input: {
1249
- content: string;
1250
- };
1251
- output: {
1252
- content: string;
1253
- };
1254
- }, {
1255
- input: {
1256
- content: string;
1257
- };
1258
- output: {
1259
- content: string;
1260
- };
1261
- }>, "many">>;
1262
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
- userLabel: z.ZodOptional<z.ZodString>;
1264
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1265
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1266
- temperature: z.ZodOptional<z.ZodNumber>;
1267
- topP: z.ZodOptional<z.ZodNumber>;
1268
- topK: z.ZodOptional<z.ZodNumber>;
1269
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
- top_p: z.ZodOptional<z.ZodNumber>;
1271
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
1272
- presence_penalty: z.ZodOptional<z.ZodNumber>;
1273
- jailbreak: z.ZodOptional<z.ZodBoolean>;
1274
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1275
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1276
- parentMessageId: z.ZodOptional<z.ZodString>;
1277
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1278
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1279
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1281
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1282
- agent: z.ZodString;
1283
- skipCompletion: z.ZodBoolean;
1284
- model: z.ZodString;
1285
- temperature: z.ZodNumber;
1286
- }, "strip", z.ZodTypeAny, {
1287
- agent: string;
1288
- skipCompletion: boolean;
1289
- model: string;
1290
- temperature: number;
1291
- }, {
1292
- agent: string;
1293
- skipCompletion: boolean;
1294
- model: string;
1295
- temperature: number;
1296
- }>>>;
1297
- }, "model" | "temperature" | "modelLabel" | "promptPrefix" | "topP" | "topK" | "maxOutputTokens">, "strip", z.ZodTypeAny, {
1298
- model?: string | null | undefined;
1299
- temperature?: number | undefined;
1300
- modelLabel?: string | null | undefined;
1301
- promptPrefix?: string | null | undefined;
1302
- topP?: number | undefined;
1303
- topK?: number | undefined;
1304
- maxOutputTokens?: number | undefined;
1305
- }, {
1306
- model?: string | null | undefined;
1307
- temperature?: number | undefined;
1308
- modelLabel?: string | null | undefined;
1309
- promptPrefix?: string | null | undefined;
1310
- topP?: number | undefined;
1311
- topK?: number | undefined;
1312
- maxOutputTokens?: number | undefined;
1313
- }>, {
1314
- model: string;
1315
- modelLabel: string | null;
1316
- promptPrefix: string | null;
1317
- temperature: number;
1318
- maxOutputTokens: number;
1319
- topP: number;
1320
- topK: number;
1321
- }, {
1322
- model?: string | null | undefined;
1323
- temperature?: number | undefined;
1324
- modelLabel?: string | null | undefined;
1325
- promptPrefix?: string | null | undefined;
1326
- topP?: number | undefined;
1327
- topK?: number | undefined;
1328
- maxOutputTokens?: number | undefined;
1329
- }>>;
1330
- export declare const chatGPTBrowserSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
1331
- conversationId: z.ZodNullable<z.ZodString>;
1332
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1333
- user: z.ZodOptional<z.ZodString>;
1334
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1335
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1336
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1337
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
- name: z.ZodString;
1339
- pluginKey: z.ZodString;
1340
- description: z.ZodString;
1341
- icon: z.ZodString;
1342
- authConfig: z.ZodArray<z.ZodObject<{
1343
- authField: z.ZodString;
1344
- label: z.ZodString;
1345
- description: z.ZodString;
1346
- }, "strip", z.ZodTypeAny, {
1347
- authField: string;
1348
- label: string;
1349
- description: string;
1350
- }, {
1351
- authField: string;
1352
- label: string;
1353
- description: string;
1354
- }>, "many">;
1355
- authenticated: z.ZodOptional<z.ZodBoolean>;
1356
- isButton: z.ZodOptional<z.ZodBoolean>;
1357
- }, "strip", z.ZodTypeAny, {
1358
- description: string;
1359
- name: string;
1360
- pluginKey: string;
1361
- icon: string;
1362
- authConfig: {
1363
- authField: string;
1364
- label: string;
1365
- description: string;
1366
- }[];
1367
- authenticated?: boolean | undefined;
1368
- isButton?: boolean | undefined;
1369
- }, {
1370
- description: string;
1371
- name: string;
1372
- pluginKey: string;
1373
- icon: string;
1374
- authConfig: {
1375
- authField: string;
1376
- label: string;
1377
- description: string;
1378
- }[];
1379
- authenticated?: boolean | undefined;
1380
- isButton?: boolean | undefined;
1381
- }>, "many">>;
1382
- createdAt: z.ZodString;
1383
- updatedAt: z.ZodString;
1384
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1385
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1386
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1387
- input: z.ZodObject<{
1388
- content: z.ZodString;
1389
- }, "strip", z.ZodTypeAny, {
1390
- content: string;
1391
- }, {
1392
- content: string;
1393
- }>;
1394
- output: z.ZodObject<{
1395
- content: z.ZodString;
1396
- }, "strip", z.ZodTypeAny, {
1397
- content: string;
1398
- }, {
1399
- content: string;
1400
- }>;
1401
- }, "strip", z.ZodTypeAny, {
1402
- input: {
1403
- content: string;
1404
- };
1405
- output: {
1406
- content: string;
1407
- };
1408
- }, {
1409
- input: {
1410
- content: string;
1411
- };
1412
- output: {
1413
- content: string;
1414
- };
1415
- }>, "many">>;
1416
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1417
- userLabel: z.ZodOptional<z.ZodString>;
1418
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1419
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1420
- temperature: z.ZodOptional<z.ZodNumber>;
1421
- topP: z.ZodOptional<z.ZodNumber>;
1422
- topK: z.ZodOptional<z.ZodNumber>;
1423
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1424
- top_p: z.ZodOptional<z.ZodNumber>;
1425
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
1426
- presence_penalty: z.ZodOptional<z.ZodNumber>;
1427
- jailbreak: z.ZodOptional<z.ZodBoolean>;
1428
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1429
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1430
- parentMessageId: z.ZodOptional<z.ZodString>;
1431
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1432
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1433
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1434
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1435
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1436
- agent: z.ZodString;
1437
- skipCompletion: z.ZodBoolean;
1438
- model: z.ZodString;
1439
- temperature: z.ZodNumber;
1440
- }, "strip", z.ZodTypeAny, {
1441
- agent: string;
1442
- skipCompletion: boolean;
1443
- model: string;
1444
- temperature: number;
1445
- }, {
1446
- agent: string;
1447
- skipCompletion: boolean;
1448
- model: string;
1449
- temperature: number;
1450
- }>>>;
1451
- }, "model">, "strip", z.ZodTypeAny, {
1452
- model?: string | null | undefined;
1453
- }, {
1454
- model?: string | null | undefined;
1455
- }>, {
1456
- model: string;
1457
- }, {
1458
- model?: string | null | undefined;
1459
- }>>;
1460
- export declare const gptPluginsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
1461
- conversationId: z.ZodNullable<z.ZodString>;
1462
- title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1463
- user: z.ZodOptional<z.ZodString>;
1464
- endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1465
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1466
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1467
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1468
- name: z.ZodString;
1469
- pluginKey: z.ZodString;
1470
- description: z.ZodString;
1471
- icon: z.ZodString;
1472
- authConfig: z.ZodArray<z.ZodObject<{
1473
- authField: z.ZodString;
1474
- label: z.ZodString;
1475
- description: z.ZodString;
1476
- }, "strip", z.ZodTypeAny, {
1477
- authField: string;
1478
- label: string;
1479
- description: string;
1480
- }, {
1481
- authField: string;
1482
- label: string;
1483
- description: string;
1484
- }>, "many">;
1485
- authenticated: z.ZodOptional<z.ZodBoolean>;
1486
- isButton: z.ZodOptional<z.ZodBoolean>;
1487
- }, "strip", z.ZodTypeAny, {
1488
- description: string;
1489
- name: string;
1490
- pluginKey: string;
1491
- icon: string;
1492
- authConfig: {
1493
- authField: string;
1494
- label: string;
1495
- description: string;
1496
- }[];
1497
- authenticated?: boolean | undefined;
1498
- isButton?: boolean | undefined;
1499
- }, {
1500
- description: string;
1501
- name: string;
1502
- pluginKey: string;
1503
- icon: string;
1504
- authConfig: {
1505
- authField: string;
1506
- label: string;
1507
- description: string;
1508
- }[];
1509
- authenticated?: boolean | undefined;
1510
- isButton?: boolean | undefined;
1511
- }>, "many">>;
1512
- createdAt: z.ZodString;
1513
- updatedAt: z.ZodString;
1514
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
- modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
- examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1517
- input: z.ZodObject<{
1518
- content: z.ZodString;
1519
- }, "strip", z.ZodTypeAny, {
1520
- content: string;
1521
- }, {
1522
- content: string;
1523
- }>;
1524
- output: z.ZodObject<{
1525
- content: z.ZodString;
1526
- }, "strip", z.ZodTypeAny, {
1527
- content: string;
1528
- }, {
1529
- content: string;
1530
- }>;
1531
- }, "strip", z.ZodTypeAny, {
1532
- input: {
1533
- content: string;
1534
- };
1535
- output: {
1536
- content: string;
1537
- };
1538
- }, {
1539
- input: {
1540
- content: string;
1541
- };
1542
- output: {
1543
- content: string;
1544
- };
1545
- }>, "many">>;
1546
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1547
- userLabel: z.ZodOptional<z.ZodString>;
1548
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1549
- promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1550
- temperature: z.ZodOptional<z.ZodNumber>;
1551
- topP: z.ZodOptional<z.ZodNumber>;
1552
- topK: z.ZodOptional<z.ZodNumber>;
1553
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
- top_p: z.ZodOptional<z.ZodNumber>;
1555
- frequency_penalty: z.ZodOptional<z.ZodNumber>;
1556
- presence_penalty: z.ZodOptional<z.ZodNumber>;
1557
- jailbreak: z.ZodOptional<z.ZodBoolean>;
1558
- jailbreakConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1559
- conversationSignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
- parentMessageId: z.ZodOptional<z.ZodString>;
1561
- clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
- invocationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1563
- toneStyle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1565
- agentOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1566
- agent: z.ZodString;
1567
- skipCompletion: z.ZodBoolean;
1568
- model: z.ZodString;
1569
- temperature: z.ZodNumber;
1570
- }, "strip", z.ZodTypeAny, {
1571
- agent: string;
1572
- skipCompletion: boolean;
1573
- model: string;
1574
- temperature: number;
1575
- }, {
1576
- agent: string;
1577
- skipCompletion: boolean;
1578
- model: string;
1579
- temperature: number;
1580
- }>>>;
1581
- }, "model" | "temperature" | "tools" | "chatGptLabel" | "promptPrefix" | "top_p" | "frequency_penalty" | "presence_penalty" | "agentOptions">, "strip", z.ZodTypeAny, {
1582
- model?: string | null | undefined;
1583
- temperature?: number | undefined;
1584
- tools?: {
1585
- description: string;
1586
- name: string;
1587
- pluginKey: string;
1588
- icon: string;
1589
- authConfig: {
1590
- authField: string;
1591
- label: string;
1592
- description: string;
1593
- }[];
1594
- authenticated?: boolean | undefined;
1595
- isButton?: boolean | undefined;
1596
- }[] | undefined;
1597
- chatGptLabel?: string | null | undefined;
1598
- promptPrefix?: string | null | undefined;
1599
- top_p?: number | undefined;
1600
- frequency_penalty?: number | undefined;
1601
- presence_penalty?: number | undefined;
1602
- agentOptions?: {
1603
- agent: string;
1604
- skipCompletion: boolean;
1605
- model: string;
1606
- temperature: number;
1607
- } | null | undefined;
1608
- }, {
1609
- model?: string | null | undefined;
1610
- temperature?: number | undefined;
1611
- tools?: {
1612
- description: string;
1613
- name: string;
1614
- pluginKey: string;
1615
- icon: string;
1616
- authConfig: {
1617
- authField: string;
1618
- label: string;
1619
- description: string;
1620
- }[];
1621
- authenticated?: boolean | undefined;
1622
- isButton?: boolean | undefined;
1623
- }[] | undefined;
1624
- chatGptLabel?: string | null | undefined;
1625
- promptPrefix?: string | null | undefined;
1626
- top_p?: number | undefined;
1627
- frequency_penalty?: number | undefined;
1628
- presence_penalty?: number | undefined;
1629
- agentOptions?: {
1630
- agent: string;
1631
- skipCompletion: boolean;
1632
- model: string;
1633
- temperature: number;
1634
- } | null | undefined;
1635
- }>, {
1636
- model: string;
1637
- chatGptLabel: string | null;
1638
- promptPrefix: string | null;
1639
- temperature: number;
1640
- top_p: number;
1641
- presence_penalty: number;
1642
- frequency_penalty: number;
1643
- tools: {
1644
- description: string;
1645
- name: string;
1646
- pluginKey: string;
1647
- icon: string;
1648
- authConfig: {
1649
- authField: string;
1650
- label: string;
1651
- description: string;
1652
- }[];
1653
- authenticated?: boolean | undefined;
1654
- isButton?: boolean | undefined;
1655
- }[];
1656
- agentOptions: {
1657
- agent: string;
1658
- skipCompletion: boolean;
1659
- model: string;
1660
- temperature: number;
1661
- };
1662
- }, {
1663
- model?: string | null | undefined;
1664
- temperature?: number | undefined;
1665
- tools?: {
1666
- description: string;
1667
- name: string;
1668
- pluginKey: string;
1669
- icon: string;
1670
- authConfig: {
1671
- authField: string;
1672
- label: string;
1673
- description: string;
1674
- }[];
1675
- authenticated?: boolean | undefined;
1676
- isButton?: boolean | undefined;
1677
- }[] | undefined;
1678
- chatGptLabel?: string | null | undefined;
1679
- promptPrefix?: string | null | undefined;
1680
- top_p?: number | undefined;
1681
- frequency_penalty?: number | undefined;
1682
- presence_penalty?: number | undefined;
1683
- agentOptions?: {
1684
- agent: string;
1685
- skipCompletion: boolean;
1686
- model: string;
1687
- temperature: number;
1688
- } | null | undefined;
1689
- }>>;
1690
- type TPossibleValues = {
1691
- models: string[];
1692
- secondaryModels?: string[];
1693
- };
1694
- export declare const parseConvo: (endpoint: EModelEndpoint, conversation: Partial<TConversation | TPreset>, possibleValues?: TPossibleValues) => {
1695
- conversationId: string | null;
1696
- title: string | null;
1697
- createdAt: string;
1698
- updatedAt: string;
1699
- endpoint: EModelEndpoint | null;
1700
- user?: string | undefined;
1701
- suggestions?: string[] | undefined;
1702
- messages?: string[] | undefined;
1703
- tools?: {
1704
- description: string;
1705
- name: string;
1706
- pluginKey: string;
1707
- icon: string;
1708
- authConfig: {
1709
- authField: string;
1710
- label: string;
1711
- description: string;
1712
- }[];
1713
- authenticated?: boolean | undefined;
1714
- isButton?: boolean | undefined;
1715
- }[] | undefined;
1716
- systemMessage?: string | null | undefined;
1717
- modelLabel?: string | null | undefined;
1718
- examples?: {
1719
- input: {
1720
- content: string;
1721
- };
1722
- output: {
1723
- content: string;
1724
- };
1725
- }[] | undefined;
1726
- chatGptLabel?: string | null | undefined;
1727
- userLabel?: string | undefined;
1728
- model?: string | null | undefined;
1729
- promptPrefix?: string | null | undefined;
1730
- temperature?: number | undefined;
1731
- topP?: number | undefined;
1732
- topK?: number | undefined;
1733
- context?: string | null | undefined;
1734
- top_p?: number | undefined;
1735
- frequency_penalty?: number | undefined;
1736
- presence_penalty?: number | undefined;
1737
- jailbreak?: boolean | undefined;
1738
- jailbreakConversationId?: string | null | undefined;
1739
- conversationSignature?: string | null | undefined;
1740
- parentMessageId?: string | undefined;
1741
- clientId?: string | null | undefined;
1742
- invocationId?: number | null | undefined;
1743
- toneStyle?: string | null | undefined;
1744
- maxOutputTokens?: number | undefined;
1745
- agentOptions?: {
1746
- agent: string;
1747
- skipCompletion: boolean;
1748
- model: string;
1749
- temperature: number;
1750
- } | null | undefined;
1751
- };
1752
- export type TEndpointOption = {
1753
- endpoint: EModelEndpoint;
1754
- model?: string;
1755
- promptPrefix?: string;
1756
- temperature?: number;
1757
- chatGptLabel?: string | null;
1758
- modelLabel?: string | null;
1759
- jailbreak?: boolean;
1760
- key?: string | null;
1761
- };
1762
- export declare const getResponseSender: (endpointOption: TEndpointOption) => string;
1763
- export {};