Browse Source

add ai_file upload

hongze 1 year ago
parent
commit
3ab4d04263
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/aimod/ai.go

+ 1 - 1
models/aimod/ai.go

@@ -169,7 +169,7 @@ type HistoryChat struct {
 
 // 修改
 func (obj *AiChatTopic) Update(updateParams, whereParam map[string]interface{}) (err error) {
-	to := orm.NewOrm()
+	to := orm.NewOrmUsingDB("ai")
 	ptrStructOrTableName := "ai_chat_topic"
 
 	qs := to.QueryTable(ptrStructOrTableName)