librechat-data-provider 0.8.505 → 0.8.507
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/dist/{data-service-CG5e1FOi.js → data-service-CCdWvcRd.js} +34 -7
- package/dist/data-service-CCdWvcRd.js.map +1 -0
- package/dist/{data-service-CwM4Cew0.mjs → data-service-D7mtXwG5.mjs} +34 -7
- package/dist/data-service-D7mtXwG5.mjs.map +1 -0
- package/dist/index.js +184 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -57
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/api-endpoints.d.ts +2 -0
- package/dist/types/bedrock.d.ts +20 -5
- package/dist/types/config.d.ts +32 -0
- package/dist/types/data-service.d.ts +3 -0
- package/dist/types/generate.d.ts +4 -0
- package/dist/types/keys.d.ts +3 -1
- package/dist/types/models.d.ts +24 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/schemas.d.ts +82 -6
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/runs.d.ts +44 -0
- package/dist/types/types.d.ts +8 -1
- package/package.json +2 -2
- package/dist/data-service-CG5e1FOi.js.map +0 -1
- package/dist/data-service-CwM4Cew0.mjs.map +0 -1
package/dist/types/config.d.ts
CHANGED
|
@@ -6676,6 +6676,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6676
6676
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6677
6677
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
6678
6678
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
6679
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
6679
6680
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6680
6681
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
6681
6682
|
name: z.ZodString;
|
|
@@ -6752,6 +6753,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6752
6753
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
6753
6754
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
6754
6755
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
6756
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
6755
6757
|
system: z.ZodOptional<z.ZodString>;
|
|
6756
6758
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
6757
6759
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -6877,6 +6879,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6877
6879
|
endpoint: string | null;
|
|
6878
6880
|
model?: string | null | undefined;
|
|
6879
6881
|
endpointType?: EModelEndpoint | null | undefined;
|
|
6882
|
+
pinned?: boolean | undefined;
|
|
6880
6883
|
tools?: string[] | {
|
|
6881
6884
|
name: string;
|
|
6882
6885
|
pluginKey: string;
|
|
@@ -6907,6 +6910,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6907
6910
|
maxContextTokens?: number | undefined;
|
|
6908
6911
|
max_tokens?: number | undefined;
|
|
6909
6912
|
promptCache?: boolean | undefined;
|
|
6913
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
6910
6914
|
system?: string | undefined;
|
|
6911
6915
|
thinking?: boolean | undefined;
|
|
6912
6916
|
thinkingBudget?: number | undefined;
|
|
@@ -6973,6 +6977,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6973
6977
|
endpoint: string | null;
|
|
6974
6978
|
model?: string | null | undefined;
|
|
6975
6979
|
endpointType?: EModelEndpoint | null | undefined;
|
|
6980
|
+
pinned?: boolean | undefined;
|
|
6976
6981
|
tools?: string[] | {
|
|
6977
6982
|
name: string;
|
|
6978
6983
|
pluginKey: string;
|
|
@@ -7003,6 +7008,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7003
7008
|
maxContextTokens?: string | number | undefined;
|
|
7004
7009
|
max_tokens?: string | number | undefined;
|
|
7005
7010
|
promptCache?: boolean | undefined;
|
|
7011
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7006
7012
|
system?: string | undefined;
|
|
7007
7013
|
thinking?: boolean | undefined;
|
|
7008
7014
|
thinkingBudget?: string | number | undefined;
|
|
@@ -7105,6 +7111,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7105
7111
|
endpoint: string | null;
|
|
7106
7112
|
model?: string | null | undefined;
|
|
7107
7113
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7114
|
+
pinned?: boolean | undefined;
|
|
7108
7115
|
tools?: string[] | {
|
|
7109
7116
|
name: string;
|
|
7110
7117
|
pluginKey: string;
|
|
@@ -7135,6 +7142,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7135
7142
|
maxContextTokens?: number | undefined;
|
|
7136
7143
|
max_tokens?: number | undefined;
|
|
7137
7144
|
promptCache?: boolean | undefined;
|
|
7145
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7138
7146
|
system?: string | undefined;
|
|
7139
7147
|
thinking?: boolean | undefined;
|
|
7140
7148
|
thinkingBudget?: number | undefined;
|
|
@@ -7229,6 +7237,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7229
7237
|
endpoint: string | null;
|
|
7230
7238
|
model?: string | null | undefined;
|
|
7231
7239
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7240
|
+
pinned?: boolean | undefined;
|
|
7232
7241
|
tools?: string[] | {
|
|
7233
7242
|
name: string;
|
|
7234
7243
|
pluginKey: string;
|
|
@@ -7259,6 +7268,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7259
7268
|
maxContextTokens?: string | number | undefined;
|
|
7260
7269
|
max_tokens?: string | number | undefined;
|
|
7261
7270
|
promptCache?: boolean | undefined;
|
|
7271
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7262
7272
|
system?: string | undefined;
|
|
7263
7273
|
thinking?: boolean | undefined;
|
|
7264
7274
|
thinkingBudget?: string | number | undefined;
|
|
@@ -7358,6 +7368,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7358
7368
|
endpoint: string | null;
|
|
7359
7369
|
model?: string | null | undefined;
|
|
7360
7370
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7371
|
+
pinned?: boolean | undefined;
|
|
7361
7372
|
tools?: string[] | {
|
|
7362
7373
|
name: string;
|
|
7363
7374
|
pluginKey: string;
|
|
@@ -7388,6 +7399,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7388
7399
|
maxContextTokens?: number | undefined;
|
|
7389
7400
|
max_tokens?: number | undefined;
|
|
7390
7401
|
promptCache?: boolean | undefined;
|
|
7402
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7391
7403
|
system?: string | undefined;
|
|
7392
7404
|
thinking?: boolean | undefined;
|
|
7393
7405
|
thinkingBudget?: number | undefined;
|
|
@@ -7487,6 +7499,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7487
7499
|
endpoint: string | null;
|
|
7488
7500
|
model?: string | null | undefined;
|
|
7489
7501
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7502
|
+
pinned?: boolean | undefined;
|
|
7490
7503
|
tools?: string[] | {
|
|
7491
7504
|
name: string;
|
|
7492
7505
|
pluginKey: string;
|
|
@@ -7517,6 +7530,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7517
7530
|
maxContextTokens?: string | number | undefined;
|
|
7518
7531
|
max_tokens?: string | number | undefined;
|
|
7519
7532
|
promptCache?: boolean | undefined;
|
|
7533
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7520
7534
|
system?: string | undefined;
|
|
7521
7535
|
thinking?: boolean | undefined;
|
|
7522
7536
|
thinkingBudget?: string | number | undefined;
|
|
@@ -11054,6 +11068,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11054
11068
|
endpoint: string | null;
|
|
11055
11069
|
model?: string | null | undefined;
|
|
11056
11070
|
endpointType?: EModelEndpoint | null | undefined;
|
|
11071
|
+
pinned?: boolean | undefined;
|
|
11057
11072
|
tools?: string[] | {
|
|
11058
11073
|
name: string;
|
|
11059
11074
|
pluginKey: string;
|
|
@@ -11084,6 +11099,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11084
11099
|
maxContextTokens?: number | undefined;
|
|
11085
11100
|
max_tokens?: number | undefined;
|
|
11086
11101
|
promptCache?: boolean | undefined;
|
|
11102
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
11087
11103
|
system?: string | undefined;
|
|
11088
11104
|
thinking?: boolean | undefined;
|
|
11089
11105
|
thinkingBudget?: number | undefined;
|
|
@@ -12083,6 +12099,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
12083
12099
|
endpoint: string | null;
|
|
12084
12100
|
model?: string | null | undefined;
|
|
12085
12101
|
endpointType?: EModelEndpoint | null | undefined;
|
|
12102
|
+
pinned?: boolean | undefined;
|
|
12086
12103
|
tools?: string[] | {
|
|
12087
12104
|
name: string;
|
|
12088
12105
|
pluginKey: string;
|
|
@@ -12113,6 +12130,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
12113
12130
|
maxContextTokens?: string | number | undefined;
|
|
12114
12131
|
max_tokens?: string | number | undefined;
|
|
12115
12132
|
promptCache?: boolean | undefined;
|
|
12133
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
12116
12134
|
system?: string | undefined;
|
|
12117
12135
|
thinking?: boolean | undefined;
|
|
12118
12136
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15098,6 +15116,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15098
15116
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15099
15117
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
15100
15118
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
15119
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
15101
15120
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15102
15121
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
15103
15122
|
name: z.ZodString;
|
|
@@ -15174,6 +15193,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15174
15193
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
15175
15194
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
15176
15195
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
15196
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
15177
15197
|
system: z.ZodOptional<z.ZodString>;
|
|
15178
15198
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
15179
15199
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -15299,6 +15319,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15299
15319
|
endpoint: string | null;
|
|
15300
15320
|
model?: string | null | undefined;
|
|
15301
15321
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15322
|
+
pinned?: boolean | undefined;
|
|
15302
15323
|
tools?: string[] | {
|
|
15303
15324
|
name: string;
|
|
15304
15325
|
pluginKey: string;
|
|
@@ -15329,6 +15350,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15329
15350
|
maxContextTokens?: number | undefined;
|
|
15330
15351
|
max_tokens?: number | undefined;
|
|
15331
15352
|
promptCache?: boolean | undefined;
|
|
15353
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15332
15354
|
system?: string | undefined;
|
|
15333
15355
|
thinking?: boolean | undefined;
|
|
15334
15356
|
thinkingBudget?: number | undefined;
|
|
@@ -15395,6 +15417,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15395
15417
|
endpoint: string | null;
|
|
15396
15418
|
model?: string | null | undefined;
|
|
15397
15419
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15420
|
+
pinned?: boolean | undefined;
|
|
15398
15421
|
tools?: string[] | {
|
|
15399
15422
|
name: string;
|
|
15400
15423
|
pluginKey: string;
|
|
@@ -15425,6 +15448,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15425
15448
|
maxContextTokens?: string | number | undefined;
|
|
15426
15449
|
max_tokens?: string | number | undefined;
|
|
15427
15450
|
promptCache?: boolean | undefined;
|
|
15451
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15428
15452
|
system?: string | undefined;
|
|
15429
15453
|
thinking?: boolean | undefined;
|
|
15430
15454
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15527,6 +15551,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15527
15551
|
endpoint: string | null;
|
|
15528
15552
|
model?: string | null | undefined;
|
|
15529
15553
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15554
|
+
pinned?: boolean | undefined;
|
|
15530
15555
|
tools?: string[] | {
|
|
15531
15556
|
name: string;
|
|
15532
15557
|
pluginKey: string;
|
|
@@ -15557,6 +15582,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15557
15582
|
maxContextTokens?: number | undefined;
|
|
15558
15583
|
max_tokens?: number | undefined;
|
|
15559
15584
|
promptCache?: boolean | undefined;
|
|
15585
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15560
15586
|
system?: string | undefined;
|
|
15561
15587
|
thinking?: boolean | undefined;
|
|
15562
15588
|
thinkingBudget?: number | undefined;
|
|
@@ -15651,6 +15677,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15651
15677
|
endpoint: string | null;
|
|
15652
15678
|
model?: string | null | undefined;
|
|
15653
15679
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15680
|
+
pinned?: boolean | undefined;
|
|
15654
15681
|
tools?: string[] | {
|
|
15655
15682
|
name: string;
|
|
15656
15683
|
pluginKey: string;
|
|
@@ -15681,6 +15708,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15681
15708
|
maxContextTokens?: string | number | undefined;
|
|
15682
15709
|
max_tokens?: string | number | undefined;
|
|
15683
15710
|
promptCache?: boolean | undefined;
|
|
15711
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15684
15712
|
system?: string | undefined;
|
|
15685
15713
|
thinking?: boolean | undefined;
|
|
15686
15714
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15780,6 +15808,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15780
15808
|
endpoint: string | null;
|
|
15781
15809
|
model?: string | null | undefined;
|
|
15782
15810
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15811
|
+
pinned?: boolean | undefined;
|
|
15783
15812
|
tools?: string[] | {
|
|
15784
15813
|
name: string;
|
|
15785
15814
|
pluginKey: string;
|
|
@@ -15810,6 +15839,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15810
15839
|
maxContextTokens?: number | undefined;
|
|
15811
15840
|
max_tokens?: number | undefined;
|
|
15812
15841
|
promptCache?: boolean | undefined;
|
|
15842
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15813
15843
|
system?: string | undefined;
|
|
15814
15844
|
thinking?: boolean | undefined;
|
|
15815
15845
|
thinkingBudget?: number | undefined;
|
|
@@ -15909,6 +15939,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15909
15939
|
endpoint: string | null;
|
|
15910
15940
|
model?: string | null | undefined;
|
|
15911
15941
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15942
|
+
pinned?: boolean | undefined;
|
|
15912
15943
|
tools?: string[] | {
|
|
15913
15944
|
name: string;
|
|
15914
15945
|
pluginKey: string;
|
|
@@ -15939,6 +15970,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15939
15970
|
maxContextTokens?: string | number | undefined;
|
|
15940
15971
|
max_tokens?: string | number | undefined;
|
|
15941
15972
|
promptCache?: boolean | undefined;
|
|
15973
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15942
15974
|
system?: string | undefined;
|
|
15943
15975
|
thinking?: boolean | undefined;
|
|
15944
15976
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AxiosResponse } from 'axios';
|
|
2
|
+
import type { TContextProjectionRequest, TContextUsageEvent } from './types/runs';
|
|
2
3
|
import type { TFileConfig } from './file-config';
|
|
3
4
|
import type * as t from './types';
|
|
4
5
|
import * as permissions from './accessPermissions';
|
|
@@ -78,6 +79,7 @@ export declare const getStartupConfig: (options?: StartupConfigOptions) => Promi
|
|
|
78
79
|
}>;
|
|
79
80
|
export declare const getAIEndpoints: () => Promise<t.TEndpointsConfig>;
|
|
80
81
|
export declare const getTokenConfig: () => Promise<t.TTokenConfigMap>;
|
|
82
|
+
export declare const getContextProjection: (payload: TContextProjectionRequest) => Promise<TContextUsageEvent | null>;
|
|
81
83
|
export declare const getModels: () => Promise<t.TModelsConfig>;
|
|
82
84
|
export declare const createAssistant: ({ version, ...data }: a.AssistantCreateParams) => Promise<a.Assistant>;
|
|
83
85
|
export declare const getAssistantById: ({ endpoint, assistant_id, version, }: {
|
|
@@ -235,6 +237,7 @@ export declare function getProjectById(projectId: string): Promise<t.TChatProjec
|
|
|
235
237
|
export declare function updateProject(payload: t.TUpdateChatProjectRequest): Promise<t.TChatProject>;
|
|
236
238
|
export declare function deleteProject(projectId: string): Promise<t.TDeleteChatProjectResponse>;
|
|
237
239
|
export declare function assignConversationToProject(payload: t.TAssignConversationToProjectRequest): Promise<t.TAssignConversationToProjectResponse>;
|
|
240
|
+
export declare function pinConversation(payload: t.TPinConversationRequest): Promise<t.TPinConversationResponse>;
|
|
238
241
|
export declare function genTitle(payload: m.TGenTitleRequest): Promise<m.TGenTitleResponse>;
|
|
239
242
|
export declare const listMessages: (params?: q.MessagesListParams) => Promise<q.MessagesListResponse>;
|
|
240
243
|
export declare function updateMessage(payload: t.TUpdateMessageRequest): Promise<unknown>;
|
package/dist/types/generate.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
97
97
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
98
98
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
99
99
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
100
101
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
101
102
|
user: z.ZodOptional<z.ZodString>;
|
|
102
103
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -176,6 +177,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
176
177
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
177
178
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
178
179
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
179
181
|
system: z.ZodOptional<z.ZodString>;
|
|
180
182
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
181
183
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -344,6 +346,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
344
346
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
345
347
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
346
348
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
347
350
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
348
351
|
user: z.ZodOptional<z.ZodString>;
|
|
349
352
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -423,6 +426,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
423
426
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
424
427
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
425
428
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
426
430
|
system: z.ZodOptional<z.ZodString>;
|
|
427
431
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
428
432
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare enum QueryKeys {
|
|
|
13
13
|
balance = "balance",
|
|
14
14
|
endpoints = "endpoints",
|
|
15
15
|
tokenConfig = "tokenConfig",
|
|
16
|
+
contextProjection = "contextProjection",
|
|
16
17
|
presets = "presets",
|
|
17
18
|
searchResults = "searchResults",
|
|
18
19
|
tokenCount = "tokenCount",
|
|
@@ -111,5 +112,6 @@ export declare enum MutationKeys {
|
|
|
111
112
|
createSkillNode = "createSkillNode",
|
|
112
113
|
updateSkillNode = "updateSkillNode",
|
|
113
114
|
deleteSkillNode = "deleteSkillNode",
|
|
114
|
-
updateSkillNodeContent = "updateSkillNodeContent"
|
|
115
|
+
updateSkillNodeContent = "updateSkillNodeContent",
|
|
116
|
+
convoPin = "convoPin"
|
|
115
117
|
}
|
package/dist/types/models.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
63
63
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
65
65
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
66
67
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
67
68
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
68
69
|
name: z.ZodString;
|
|
@@ -139,6 +140,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
139
140
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
140
141
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
141
142
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
142
144
|
system: z.ZodOptional<z.ZodString>;
|
|
143
145
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
144
146
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -264,6 +266,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
264
266
|
endpoint: string | null;
|
|
265
267
|
model?: string | null | undefined;
|
|
266
268
|
endpointType?: EModelEndpoint | null | undefined;
|
|
269
|
+
pinned?: boolean | undefined;
|
|
267
270
|
tools?: string[] | {
|
|
268
271
|
name: string;
|
|
269
272
|
pluginKey: string;
|
|
@@ -294,6 +297,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
294
297
|
maxContextTokens?: number | undefined;
|
|
295
298
|
max_tokens?: number | undefined;
|
|
296
299
|
promptCache?: boolean | undefined;
|
|
300
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
297
301
|
system?: string | undefined;
|
|
298
302
|
thinking?: boolean | undefined;
|
|
299
303
|
thinkingBudget?: number | undefined;
|
|
@@ -360,6 +364,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
360
364
|
endpoint: string | null;
|
|
361
365
|
model?: string | null | undefined;
|
|
362
366
|
endpointType?: EModelEndpoint | null | undefined;
|
|
367
|
+
pinned?: boolean | undefined;
|
|
363
368
|
tools?: string[] | {
|
|
364
369
|
name: string;
|
|
365
370
|
pluginKey: string;
|
|
@@ -390,6 +395,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
390
395
|
maxContextTokens?: string | number | undefined;
|
|
391
396
|
max_tokens?: string | number | undefined;
|
|
392
397
|
promptCache?: boolean | undefined;
|
|
398
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
393
399
|
system?: string | undefined;
|
|
394
400
|
thinking?: boolean | undefined;
|
|
395
401
|
thinkingBudget?: string | number | undefined;
|
|
@@ -492,6 +498,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
492
498
|
endpoint: string | null;
|
|
493
499
|
model?: string | null | undefined;
|
|
494
500
|
endpointType?: EModelEndpoint | null | undefined;
|
|
501
|
+
pinned?: boolean | undefined;
|
|
495
502
|
tools?: string[] | {
|
|
496
503
|
name: string;
|
|
497
504
|
pluginKey: string;
|
|
@@ -522,6 +529,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
522
529
|
maxContextTokens?: number | undefined;
|
|
523
530
|
max_tokens?: number | undefined;
|
|
524
531
|
promptCache?: boolean | undefined;
|
|
532
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
525
533
|
system?: string | undefined;
|
|
526
534
|
thinking?: boolean | undefined;
|
|
527
535
|
thinkingBudget?: number | undefined;
|
|
@@ -616,6 +624,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
616
624
|
endpoint: string | null;
|
|
617
625
|
model?: string | null | undefined;
|
|
618
626
|
endpointType?: EModelEndpoint | null | undefined;
|
|
627
|
+
pinned?: boolean | undefined;
|
|
619
628
|
tools?: string[] | {
|
|
620
629
|
name: string;
|
|
621
630
|
pluginKey: string;
|
|
@@ -646,6 +655,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
646
655
|
maxContextTokens?: string | number | undefined;
|
|
647
656
|
max_tokens?: string | number | undefined;
|
|
648
657
|
promptCache?: boolean | undefined;
|
|
658
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
649
659
|
system?: string | undefined;
|
|
650
660
|
thinking?: boolean | undefined;
|
|
651
661
|
thinkingBudget?: string | number | undefined;
|
|
@@ -746,6 +756,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
746
756
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
757
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
748
758
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
749
760
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
750
761
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
751
762
|
name: z.ZodString;
|
|
@@ -822,6 +833,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
822
833
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
823
834
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
824
835
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
825
837
|
system: z.ZodOptional<z.ZodString>;
|
|
826
838
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
827
839
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -947,6 +959,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
947
959
|
endpoint: string | null;
|
|
948
960
|
model?: string | null | undefined;
|
|
949
961
|
endpointType?: EModelEndpoint | null | undefined;
|
|
962
|
+
pinned?: boolean | undefined;
|
|
950
963
|
tools?: string[] | {
|
|
951
964
|
name: string;
|
|
952
965
|
pluginKey: string;
|
|
@@ -977,6 +990,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
977
990
|
maxContextTokens?: number | undefined;
|
|
978
991
|
max_tokens?: number | undefined;
|
|
979
992
|
promptCache?: boolean | undefined;
|
|
993
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
980
994
|
system?: string | undefined;
|
|
981
995
|
thinking?: boolean | undefined;
|
|
982
996
|
thinkingBudget?: number | undefined;
|
|
@@ -1043,6 +1057,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1043
1057
|
endpoint: string | null;
|
|
1044
1058
|
model?: string | null | undefined;
|
|
1045
1059
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1060
|
+
pinned?: boolean | undefined;
|
|
1046
1061
|
tools?: string[] | {
|
|
1047
1062
|
name: string;
|
|
1048
1063
|
pluginKey: string;
|
|
@@ -1073,6 +1088,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1073
1088
|
maxContextTokens?: string | number | undefined;
|
|
1074
1089
|
max_tokens?: string | number | undefined;
|
|
1075
1090
|
promptCache?: boolean | undefined;
|
|
1091
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1076
1092
|
system?: string | undefined;
|
|
1077
1093
|
thinking?: boolean | undefined;
|
|
1078
1094
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1175,6 +1191,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1175
1191
|
endpoint: string | null;
|
|
1176
1192
|
model?: string | null | undefined;
|
|
1177
1193
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1194
|
+
pinned?: boolean | undefined;
|
|
1178
1195
|
tools?: string[] | {
|
|
1179
1196
|
name: string;
|
|
1180
1197
|
pluginKey: string;
|
|
@@ -1205,6 +1222,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1205
1222
|
maxContextTokens?: number | undefined;
|
|
1206
1223
|
max_tokens?: number | undefined;
|
|
1207
1224
|
promptCache?: boolean | undefined;
|
|
1225
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1208
1226
|
system?: string | undefined;
|
|
1209
1227
|
thinking?: boolean | undefined;
|
|
1210
1228
|
thinkingBudget?: number | undefined;
|
|
@@ -1299,6 +1317,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1299
1317
|
endpoint: string | null;
|
|
1300
1318
|
model?: string | null | undefined;
|
|
1301
1319
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1320
|
+
pinned?: boolean | undefined;
|
|
1302
1321
|
tools?: string[] | {
|
|
1303
1322
|
name: string;
|
|
1304
1323
|
pluginKey: string;
|
|
@@ -1329,6 +1348,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1329
1348
|
maxContextTokens?: string | number | undefined;
|
|
1330
1349
|
max_tokens?: string | number | undefined;
|
|
1331
1350
|
promptCache?: boolean | undefined;
|
|
1351
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1332
1352
|
system?: string | undefined;
|
|
1333
1353
|
thinking?: boolean | undefined;
|
|
1334
1354
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1428,6 +1448,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1428
1448
|
endpoint: string | null;
|
|
1429
1449
|
model?: string | null | undefined;
|
|
1430
1450
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1451
|
+
pinned?: boolean | undefined;
|
|
1431
1452
|
tools?: string[] | {
|
|
1432
1453
|
name: string;
|
|
1433
1454
|
pluginKey: string;
|
|
@@ -1458,6 +1479,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1458
1479
|
maxContextTokens?: number | undefined;
|
|
1459
1480
|
max_tokens?: number | undefined;
|
|
1460
1481
|
promptCache?: boolean | undefined;
|
|
1482
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1461
1483
|
system?: string | undefined;
|
|
1462
1484
|
thinking?: boolean | undefined;
|
|
1463
1485
|
thinkingBudget?: number | undefined;
|
|
@@ -1557,6 +1579,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1557
1579
|
endpoint: string | null;
|
|
1558
1580
|
model?: string | null | undefined;
|
|
1559
1581
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1582
|
+
pinned?: boolean | undefined;
|
|
1560
1583
|
tools?: string[] | {
|
|
1561
1584
|
name: string;
|
|
1562
1585
|
pluginKey: string;
|
|
@@ -1587,6 +1610,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1587
1610
|
maxContextTokens?: string | number | undefined;
|
|
1588
1611
|
max_tokens?: string | number | undefined;
|
|
1589
1612
|
promptCache?: boolean | undefined;
|
|
1613
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1590
1614
|
system?: string | undefined;
|
|
1591
1615
|
thinking?: boolean | undefined;
|
|
1592
1616
|
thinkingBudget?: string | number | undefined;
|
package/dist/types/parsers.d.ts
CHANGED
|
@@ -33,10 +33,11 @@ export declare const parseCompactConvo: ({ endpoint, endpointType, conversation,
|
|
|
33
33
|
export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean): string;
|
|
34
34
|
export declare const SEPARATORS: string[];
|
|
35
35
|
export declare function findLastSeparatorIndex(text: string, separators?: string[]): number;
|
|
36
|
-
export declare function replaceSpecialVars({ text, user, now: inputNow, }: {
|
|
36
|
+
export declare function replaceSpecialVars({ text, user, now: inputNow, timezone, }: {
|
|
37
37
|
text: string;
|
|
38
38
|
user?: t.TUser | null;
|
|
39
39
|
now?: string | number | Date;
|
|
40
|
+
timezone?: string;
|
|
40
41
|
}): string;
|
|
41
42
|
/**
|
|
42
43
|
* Parsed ephemeral agent ID result
|