|
@@ -9,6 +9,7 @@ import (
|
|
|
"eta/eta_api/services/llm/facade"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -87,9 +88,11 @@ func (pCtrl *PromoteController) GenerateContent() {
|
|
|
Promote: userContent,
|
|
|
Answer: aiContent,
|
|
|
}
|
|
|
+ llm := strings.ReplaceAll(gcReq.LLMModel, ":", "")
|
|
|
saveContentReq := rag.PromoteTrainRecord{
|
|
|
WechatArticleId: gcReq.WechatArticleId,
|
|
|
Title: userContent.Content,
|
|
|
+ Llm: llm,
|
|
|
AigcContent: res.Answer,
|
|
|
AigcSendTime: aiSendTime,
|
|
|
TemplatePromote: userContent.Content,
|
|
@@ -190,9 +193,11 @@ func (pCtrl *PromoteController) SavePromoteContent() {
|
|
|
br.ErrMsg = "AI生成时间不能为空"
|
|
|
return
|
|
|
}
|
|
|
+ llm := strings.ReplaceAll(gcReq.Llm, ":", "")
|
|
|
saveContentReq := rag.PromoteTrainRecord{
|
|
|
WechatArticleId: gcReq.WechatArticleId,
|
|
|
Title: titile,
|
|
|
+ Llm: llm,
|
|
|
AigcContent: assistantContent.Content,
|
|
|
AigcSendTime: assistantSendTime,
|
|
|
TemplatePromote: userContent.Content,
|