fix: 1.调整模型 2.解决空指针问题 3.建群卡片接收人增加@人

This commit is contained in:
fuzhongyun 2026-01-27 18:03:18 +08:00
parent 2fd3d2ae60
commit 5b11cb728f
3 changed files with 15 additions and 13 deletions

View File

@ -5,9 +5,9 @@ server:
ollama: ollama:
base_url: "http://192.168.6.115:11434" base_url: "http://192.168.6.115:11434"
model: "qwen3:8b" model: "qwen3-coder:480b-cloud"
generate_model: "deepseek-v3.2:cloud" generate_model: "qwen3-coder:480b-cloud"
mapping_model: "qwen3:8b" mapping_model: "deepseek-v3.2:cloud"
vl_model: "qwen2.5vl:7b" vl_model: "qwen2.5vl:7b"
timeout: "120s" timeout: "120s"
level: "info" level: "info"

View File

@ -61,6 +61,7 @@ func NewDingTalkBotBiz(
handle *do.Handle, handle *do.Handle,
botConfigImpl *impl.BotConfigImpl, botConfigImpl *impl.BotConfigImpl,
botGroupImpl *impl.BotGroupImpl, botGroupImpl *impl.BotGroupImpl,
botGroupConfigImpl *impl.BotGroupConfigImpl,
dingTalkUser *dingtalk.User, dingTalkUser *dingtalk.User,
chatHis *impl.BotChatHisImpl, chatHis *impl.BotChatHisImpl,
reportDailyCacheImpl *impl.ReportDailyCacheImpl, reportDailyCacheImpl *impl.ReportDailyCacheImpl,
@ -81,6 +82,7 @@ func NewDingTalkBotBiz(
dingTalkUser: dingTalkUser, dingTalkUser: dingTalkUser,
groupConfigBiz: groupConfigBiz, groupConfigBiz: groupConfigBiz,
botGroupImpl: botGroupImpl, botGroupImpl: botGroupImpl,
botGroupConfigImpl: botGroupConfigImpl,
toolManager: toolManager, toolManager: toolManager,
chatHis: chatHis, chatHis: chatHis,
conf: conf, conf: conf,

View File

@ -617,7 +617,7 @@ func (g *GroupConfigBiz) shouldCreateIssueHandlingGroup(ctx context.Context, rec
"action_id": tea.String("create_group"), "action_id": tea.String("create_group"),
"button_display": tea.String("true"), "button_display": tea.String("true"),
"group_scope": tea.String(strings.TrimSpace(rec.UserContent.Text)), "group_scope": tea.String(strings.TrimSpace(rec.UserContent.Text)),
"_CARD_DEBUG_TOOL_ENTRY": tea.String(g.conf.Dingtalk.Card.DebugToolEntryShow), // 调试字段 // "_CARD_DEBUG_TOOL_ENTRY": tea.String(g.conf.Dingtalk.Card.DebugToolEntryShow), // 调试字段
}, },
}, },
ImGroupOpenSpaceModel: &card_1_0.CreateAndDeliverRequestImGroupOpenSpaceModel{ ImGroupOpenSpaceModel: &card_1_0.CreateAndDeliverRequestImGroupOpenSpaceModel{
@ -626,7 +626,7 @@ func (g *GroupConfigBiz) shouldCreateIssueHandlingGroup(ctx context.Context, rec
OpenSpaceId: tea.String("dtv1.card//im_group." + callback.ConversationId), OpenSpaceId: tea.String("dtv1.card//im_group." + callback.ConversationId),
ImGroupOpenDeliverModel: &card_1_0.CreateAndDeliverRequestImGroupOpenDeliverModel{ ImGroupOpenDeliverModel: &card_1_0.CreateAndDeliverRequestImGroupOpenDeliverModel{
RobotCode: tea.String(callback.RobotCode), RobotCode: tea.String(callback.RobotCode),
Recipients: userIds, Recipients: append(userIds, tea.String(callback.SenderStaffId)),
}, },
}) })
if err != nil { if err != nil {