Compare commits
No commits in common. "feature/fzy/optimize" and "master" have entirely different histories.
feature/fz
...
master
|
|
@ -143,10 +143,6 @@ func (r *OllamaService) RecognizeWithImg(ctx context.Context, requireData *entit
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 图片识别结果 减少后期重复识别耗时
|
|
||||||
requireData.ImgContent = desc.Response
|
|
||||||
|
|
||||||
entitys.ResLog(requireData.Ch, "recognize_img_end", "图片识别完成,识别内容:"+desc.Response)
|
entitys.ResLog(requireData.Ch, "recognize_img_end", "图片识别完成,识别内容:"+desc.Response)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,6 @@ type RequireData struct {
|
||||||
KnowledgeConf KnowledgeBaseRequest
|
KnowledgeConf KnowledgeBaseRequest
|
||||||
ImgByte []api.ImageData
|
ImgByte []api.ImageData
|
||||||
ImgUrls []string
|
ImgUrls []string
|
||||||
ImgContent string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type KnowledgeBaseRequest struct {
|
type KnowledgeBaseRequest struct {
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,11 @@ import (
|
||||||
|
|
||||||
// BugOptimizationSubmitForm 工单提交表单参数
|
// BugOptimizationSubmitForm 工单提交表单参数
|
||||||
type BugOptimizationSubmitForm struct {
|
type BugOptimizationSubmitForm struct {
|
||||||
Mark string `json:"mark"` // 工单标识
|
Mark string `json:"mark"` // 工单标识
|
||||||
Text string `json:"text"` // 工单描述
|
Text string `json:"text"` // 工单描述
|
||||||
Img string `json:"img"` // 工单截图
|
Img string `json:"img"` // 工单截图
|
||||||
ImgContent string `json:"img_content"` // 图片识别内容
|
Creator string `json:"creator"` // 工单创建人
|
||||||
Creator string `json:"creator"` // 工单创建人
|
TaskId string `json:"task_id"` // 当初任务ID
|
||||||
TaskId string `json:"task_id"` // 当初任务ID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
@ -48,12 +47,11 @@ func (w *BotTool) BugOptimizationSubmit(ctx context.Context, requireData *entity
|
||||||
|
|
||||||
// 构建工单表单参数
|
// 构建工单表单参数
|
||||||
body := BugOptimizationSubmitForm{
|
body := BugOptimizationSubmitForm{
|
||||||
Mark: requireData.Match.Index,
|
Mark: requireData.Match.Index,
|
||||||
Text: requireData.Req.Text,
|
Text: requireData.Req.Text,
|
||||||
Img: requireData.Req.Img,
|
Img: requireData.Req.Img,
|
||||||
ImgContent: requireData.ImgContent,
|
Creator: userName,
|
||||||
Creator: userName,
|
TaskId: uuid.New().String(),
|
||||||
TaskId: uuid.New().String(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
request := l_request.Request{
|
request := l_request.Request{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue