Compare commits
No commits in common. "cdac506f5672af00d5ce813fff5ef0c60a606cff" and "46049475c1dfb2128a0a54857aa6d6ac9d237f07" have entirely different histories.
cdac506f56
...
46049475c1
|
|
@ -70,18 +70,11 @@ func (c *CallbackBiz) issueHandlingExtractContent(data chatbot.BotCallbackDataMo
|
|||
Model: c.cfg.Ollama.GenerateModel,
|
||||
Prompt: prompt,
|
||||
Stream: util.AnyToPoint(false),
|
||||
Think: &api.ThinkValue{Value: false},
|
||||
})
|
||||
if err != nil {
|
||||
log.Errorf("问题提取失败: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
// 尝试清理 JSON 内容(有时模型会返回 markdown 块)
|
||||
generateResp.Response = strings.TrimPrefix(generateResp.Response, "```json")
|
||||
generateResp.Response = strings.TrimSuffix(generateResp.Response, "```")
|
||||
generateResp.Response = strings.TrimSpace(generateResp.Response)
|
||||
|
||||
// 解析 JSON 响应
|
||||
var resp struct {
|
||||
Question string `json:"question"`
|
||||
|
|
|
|||
|
|
@ -927,7 +927,6 @@ func (d *DingTalkBotBiz) createIssueHandlingGroupAndInit(ctx context.Context, ca
|
|||
// }
|
||||
|
||||
// 初始化群聊
|
||||
time.Sleep(time.Millisecond * 200) // 等待机器人加入群聊
|
||||
groupScope := callbackParams["group_scope"].(string) // 群主题
|
||||
d.initIssueHandlingGroup(appKey, openConversationId, groupScope)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue