mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 17:25:15 +08:00
fix: 修复日报成员名称与图片识别兼容性
This commit is contained in:
1 parent
6d8ed43f65
commit
840ad51900
4 files changed
+20
-11
No files matched your search
@@ -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) }
|
||||
|
||||
Reference in new issue
Block a user