Download api/models/schema/assistant.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/assistant.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/models/schema/assistant.js
-
curl -L -o assistant.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/assistant.js
624 Bytes
| const mongoose = require('mongoose'); | |
| const assistantSchema = mongoose.Schema( | |
| { | |
| user: { | |
| type: mongoose.Schema.Types.ObjectId, | |
| ref: 'User', | |
| required: true, | |
| }, | |
| assistant_id: { | |
| type: String, | |
| index: true, | |
| required: true, | |
| }, | |
| avatar: { | |
| type: { | |
| filepath: String, | |
| source: String, | |
| }, | |
| default: undefined, | |
| }, | |
| access_level: { | |
| type: Number, | |
| }, | |
| file_ids: { type: [String], default: undefined }, | |
| actions: { type: [String], default: undefined }, | |
| }, | |
| { | |
| timestamps: true, | |
| }, | |
| ); | |
| module.exports = assistantSchema; | |