From 4db8aea43dded3f2c1d0d41b5a3fb322a38d4730 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 23 Dec 2024 19:02:36 +0300 Subject: Feat: read json sysprompt cards --- models/card.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'models/card.go') diff --git a/models/card.go b/models/card.go index 24226d3..4ff2d8b 100644 --- a/models/card.go +++ b/models/card.go @@ -34,8 +34,8 @@ func (c *CharCardSpec) Simplify(userName, fpath string) *CharCard { } type CharCard struct { - SysPrompt string - FirstMsg string - Role string - FilePath string + SysPrompt string `json:"sys_prompt"` + FirstMsg string `json:"first_msg"` + Role string `json:"role"` + FilePath string `json:"filepath"` } -- cgit v1.2.3