Merge branch 'main' into feat/user-groups

This commit is contained in:
Ruben Talstra 2025-03-19 14:36:27 +01:00 committed by GitHub
commit c696b935b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
108 changed files with 7249 additions and 1732 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/data-schemas",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"description": "Mongoose schemas and models for LibreChat",
"main": "dist/index.cjs",
@ -60,7 +60,7 @@
"access": "public"
},
"dependencies": {
"mongoose": "^8.9.5"
"mongoose": "^8.12.1"
},
"peerDependencies": {
"keyv": "^4.5.4"

View file

@ -13,6 +13,7 @@ export interface IAgent extends Omit<Document, 'model'> {
model_parameters?: Record<string, unknown>;
artifacts?: string;
access_level?: number;
recursion_limit?: number;
tools?: string[];
tool_kwargs?: Array<unknown>;
actions?: string[];
@ -65,6 +66,9 @@ const agentSchema = new Schema<IAgent>(
access_level: {
type: Number,
},
recursion_limit: {
type: Number,
},
tools: {
type: [String],
default: undefined,

View file

@ -8,6 +8,7 @@ export interface IMongoFile extends Document {
file_id: string;
temp_file_id?: string;
bytes: number;
text?: string;
filename: string;
filepath: string;
object: 'file';
@ -72,6 +73,9 @@ const file: Schema<IMongoFile> = new Schema(
type: String,
required: true,
},
text: {
type: String,
},
context: {
type: String,
},