mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
实现 AI 图片理解能力测试
This commit is contained in:
1 parent
a0028fc57d
commit
85d66f2da2
14 files changed
+696
-17
No files matched your search
@@ -88,3 +88,27 @@ export interface AIConnectionTestResult {
|
||||
error?: string
|
||||
latencyMs?: number
|
||||
}
|
||||
|
||||
export interface AIVisionTestRequest {
|
||||
providerId?: string
|
||||
modelId?: string
|
||||
prompt: string
|
||||
imageDataUrl: string
|
||||
}
|
||||
|
||||
export interface AIVisionTestResult {
|
||||
success: boolean
|
||||
providerName?: string
|
||||
modelId?: string
|
||||
modelName?: string
|
||||
latencyMs?: number
|
||||
usage?: {
|
||||
input?: number
|
||||
output?: number
|
||||
total?: number
|
||||
estimated?: boolean
|
||||
}
|
||||
answer?: string
|
||||
code?: 'INVALID_IMAGE' | 'VISION_UNSUPPORTED' | 'API_ERROR'
|
||||
error?: string
|
||||
}
|
||||
Reference in new issue
Block a user