From 990e0695c582c2c8d647c258cde0342ac14e3a75 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 5 Dec 2024 18:36:05 +0300 Subject: Enha: add agent to chat history; gen-regen diff --- models/db.go | 1 + 1 file changed, 1 insertion(+) (limited to 'models') diff --git a/models/db.go b/models/db.go index 4f52f68..1f1c8b4 100644 --- a/models/db.go +++ b/models/db.go @@ -9,6 +9,7 @@ type Chat struct { ID uint32 `db:"id" json:"id"` Name string `db:"name" json:"name"` Msgs string `db:"msgs" json:"msgs"` // []RoleMsg to string json + Agent string `db:"agent" json:"agent"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` } -- cgit v1.2.3