Skip to content

Commit

Permalink
Merge pull request #821 from bjwswang/main
Browse files Browse the repository at this point in the history
fix: files should be string not text[]
  • Loading branch information
bjwswang authored Mar 9, 2024
2 parents 6446a55 + 082ba8e commit b3586cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/pkg/chat/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit b3586cf

Please sign in to comment.