Fix: startnewchat fill created_at
This commit is contained in:
@@ -213,6 +213,8 @@ func startNewChat(keepSysP bool) {
|
||||
newChat := &models.Chat{
|
||||
ID: id + 1,
|
||||
Name: fmt.Sprintf("%d_%s", id+1, cfg.AssistantRole),
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
// chat is written to db when we get first llm response (or any)
|
||||
// actual chat history (messages) would be parsed then
|
||||
Msgs: "",
|
||||
|
||||
Reference in New Issue
Block a user