| export const message = { | |
| user(input) { | |
| const { parts: _parts, ...rest } = input; | |
| const info = { | |
| ...rest, | |
| id: "asdasd", | |
| time: { | |
| created: Date.now(), | |
| }, | |
| role: "user", | |
| }; | |
| return { | |
| info, | |
| parts: input.parts.map((part) => ({ | |
| ...part, | |
| id: "asdasd", | |
| messageID: info.id, | |
| sessionID: info.sessionID, | |
| })), | |
| }; | |
| }, | |
| }; | |
Xet Storage Details
- Size:
- 527 Bytes
- Xet hash:
- 3a8cb105fc1e01e1523750a18769274fa864208c7e19ba4c9ae0d35e75d7b4f4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.