fix(types): use correct GORM tag separator in Message.KnowledgeReferences

Multiple GORM tag options must be separated by ';', not ','. The comma was
parsed as part of the type value, producing malformed DDL that causes
AutoMigrate(&Message{}) to fail on SQLite with a syntax error.
This commit is contained in:
myheart99@126.com
2026-07-21 07:30:57 +08:00
committed by lyingbug
parent fd660ca796
commit e289595054
+1 -1
View File
@@ -213,7 +213,7 @@ type Message struct {
// Message role: "user", "assistant", "system"
Role string `json:"role"`
// References to knowledge chunks used in the response
KnowledgeReferences References `json:"knowledge_references" gorm:"type:json,column:knowledge_references"`
KnowledgeReferences References `json:"knowledge_references" gorm:"type:json;column:knowledge_references"`
// Agent execution steps (only for assistant messages generated by agent)
// This contains the detailed reasoning process and tool calls made by the agent
// Stored for user history display, but NOT included in LLM context to avoid redundancy