fix: 修复日报成员名称与图片识别兼容性

This commit is contained in:
Wxw-Gu committed 2026-07-15 21:17:54 +08:00
1 parent 6d8ed43f65
commit 840ad51900
4 files changed
+20 -11

No files matched your search

+3
View File
@@ -195,6 +195,9 @@ export class AIProviderService {
const imageError = validateVisionImage(imagePart.dataUrl)
if (imageError) throw new Error(imageError)
const result = await this.request(messages as AIMessage[], options)
if (options?.providerId && options.modelId) {
this.markCapabilities(options.providerId, options.modelId, { vision: true, ocr: true })
}
return { success: true, ...result }
} catch (error) {
return { success: false, error: safeAIError(error) }