实现 AI 图片理解能力测试

This commit is contained in:
电摇小子
2026-07-14 11:07:35 +08:00
parent 31df97237d
commit ce4b00bcd9
14 changed files with 696 additions and 17 deletions
+24
View File
@@ -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
}