mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-18 12:07:01 +08:00
实现 AI 图片理解能力测试
This commit is contained in:
@@ -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