实现 AI 图片理解能力测试

This commit is contained in:
电摇小子 committed 2026-07-14 11:07:35 +08:00
1 parent a0028fc57d
commit 85d66f2da2
14 files changed
+696 -17

No files matched your search

+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
}