This commit is contained in:
geoffsee
2025-05-22 23:14:01 -04:00
commit 33679583af
242 changed files with 15090 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Models
import { types } from "mobx-state-tree";
export default types
.model("Message", {
content: types.string,
role: types.enumeration(["user", "assistant", "system"]),
})
.actions((self) => ({
setContent(newContent: string) {
self.content = newContent;
},
append(newContent: string) {
self.content += newContent;
},
}));