ソースを参照

fix:edit agent create fastgpt collection type

jimmyyem 4 ヶ月 前
コミット
81985dbef5
1 ファイル変更1 行追加1 行削除
  1. 1 1
      internal/logic/agent/create_agent_logic.go

+ 1 - 1
internal/logic/agent/create_agent_logic.go

@@ -65,7 +65,7 @@ func (l *CreateAgentLogic) CreateAgent(req *types.AgentInfo) (*types.BaseMsgResp
 	var collectionReq fastgpt.CreateCollectionReq
 	collectionReq.DatasetId = datasetResp.Data
 	collectionReq.Name = "手动录入"
-	collectionReq.Type = "folder"
+	collectionReq.Type = "virtual" // 暂时改动
 	collectionResp, err := fastgpt.CreateEmptyCollection(&collectionReq)
 	if err != nil {
 		return nil, errors.New("create dataset failed")