feat(dingtalk): support image questions with vision models

This commit is contained in:
姚章浩
2026-07-15 13:54:34 +08:00
parent 9645de64a1
commit 1b0b0fb8ed
7 changed files with 498 additions and 25 deletions
+5
View File
@@ -4,6 +4,7 @@ import (
"context"
"io"
"github.com/Tencent/WeKnora/internal/types"
"github.com/gin-gonic/gin"
)
@@ -64,6 +65,10 @@ type IncomingMessage struct {
FileName string
// FileSize is the file size in bytes (for file messages, optional).
FileSize int64
// ImageURLs carries transient model-ready image inputs (usually data URIs). Never log these values.
ImageURLs []string
// ImageReferences carries durable, non-secret source references persisted on the user message.
ImageReferences types.MessageImages
// ThreadID is the platform-specific thread identifier.
// - Slack: thread_ts (top-level message uses its own timestamp)
// - Mattermost: root_id, or post_id if top-level