mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-08 00:52:37 +01:00
Merge branch 'main' into feat/user-groups
This commit is contained in:
commit
c696b935b8
108 changed files with 7249 additions and 1732 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue