librechat-data-provider 0.7.77 → 0.7.78
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +6 -1
- package/src/models.ts +1 -0
- package/src/types.ts +0 -1
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -237,6 +237,7 @@ export const agentsEndpointSChema = baseEndpointSchema.merge(
|
|
|
237
237
|
recursionLimit: z.number().optional(),
|
|
238
238
|
disableBuilder: z.boolean().optional(),
|
|
239
239
|
maxRecursionLimit: z.number().optional(),
|
|
240
|
+
allowedProviders: z.array(z.union([z.string(), eModelEndpointSchema])).optional(),
|
|
240
241
|
capabilities: z
|
|
241
242
|
.array(z.nativeEnum(AgentCapabilities))
|
|
242
243
|
.optional()
|
|
@@ -1102,6 +1103,10 @@ export enum ErrorTypes {
|
|
|
1102
1103
|
* Google provider returned an error
|
|
1103
1104
|
*/
|
|
1104
1105
|
GOOGLE_ERROR = 'google_error',
|
|
1106
|
+
/**
|
|
1107
|
+
* Invalid Agent Provider (excluded by Admin)
|
|
1108
|
+
*/
|
|
1109
|
+
INVALID_AGENT_PROVIDER = 'invalid_agent_provider',
|
|
1105
1110
|
}
|
|
1106
1111
|
|
|
1107
1112
|
/**
|
|
@@ -1214,7 +1219,7 @@ export enum Constants {
|
|
|
1214
1219
|
/** Key for the app's version. */
|
|
1215
1220
|
VERSION = 'v0.7.7',
|
|
1216
1221
|
/** Key for the Custom Config's version (librechat.yaml). */
|
|
1217
|
-
CONFIG_VERSION = '1.2.
|
|
1222
|
+
CONFIG_VERSION = '1.2.4',
|
|
1218
1223
|
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
|
|
1219
1224
|
NO_PARENT = '00000000-0000-0000-0000-000000000000',
|
|
1220
1225
|
/** Standard value for the initial conversationId before a request is sent */
|
package/src/models.ts
CHANGED
|
@@ -38,6 +38,7 @@ export const specsConfigSchema = z.object({
|
|
|
38
38
|
enforce: z.boolean().default(false),
|
|
39
39
|
prioritize: z.boolean().default(true),
|
|
40
40
|
list: z.array(tModelSpecSchema).min(1),
|
|
41
|
+
addedEndpoints: z.array(z.union([z.string(), eModelEndpointSchema])).optional(),
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
export type TSpecsConfig = z.infer<typeof specsConfigSchema>;
|
package/src/types.ts
CHANGED