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

This commit is contained in:
Wxw-Gu
2026-07-15 21:17:54 +08:00
parent 1abaa57a0c
commit 1275c512c4
4 changed files with 20 additions and 11 deletions
+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) }