From 082ba8ea0ab6342be0012262a80995ad82efb99c Mon Sep 17 00:00:00 2001 From: bjwswang Date: Fri, 8 Mar 2024 16:12:31 +0000 Subject: [PATCH] fix: files should be string not text[] Signed-off-by: bjwswang --- apiserver/pkg/chat/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/pkg/chat/storage/storage.go b/apiserver/pkg/chat/storage/storage.go index a37b7e274..a0e7a0200 100644 --- a/apiserver/pkg/chat/storage/storage.go +++ b/apiserver/pkg/chat/storage/storage.go @@ -57,7 +57,7 @@ type Message struct { Query string `gorm:"column:query;type:string;comment:user input" json:"query" example:"旷工最小计算单位为多少天?"` // Files that shall be used in this Chat Files []string `gorm:"-" json:"files"` - RawFiles string `gorm:"column:files;type:text[];comment:input files" json:"-"` + RawFiles string `gorm:"column:files;type:string;comment:input files" json:"-"` Answer string `gorm:"column:answer;type:string;comment:ai response" json:"answer" example:"旷工最小计算单位为0.5天。"` References References `gorm:"column:references;type:json;comment:references" json:"references,omitempty"`