Download packages/data-schemas/src/models/memory.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/memory.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/models/memory.ts
-
curl -L -o memory.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/memory.ts
271 Bytes
| import memorySchema from '~/schema/memory'; | |
| import type { IMemoryEntry } from '~/types/memory'; | |
| export function createMemoryModel(mongoose: typeof import('mongoose')) { | |
| return mongoose.models.MemoryEntry || mongoose.model<IMemoryEntry>('MemoryEntry', memorySchema); | |
| } | |