Files
aidio-description/dist/providers/vision/openAIVisionProvider.d.ts

33 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

import { VisionProvider, VisionProviderConfig, VisionResult, BatchContext } from '../../interfaces';
/**
* OpenAI Vision Provider Implementation
*/
export declare class OpenAIVisionProvider implements VisionProvider {
private config;
private openai;
constructor(config: VisionProviderConfig);
/**
* Describe a single image
* @param imagePath - Path to the image file
* @param prompt - Prompt for the AI
* @returns Description and usage stats
*/
describeImage(imagePath: string, prompt: string): Promise<VisionResult>;
/**
* Compare two images and describe the differences
* @param image1Path - Path to the first image
* @param image2Path - Path to the second image
* @param prompt - Prompt for the AI
* @returns Description and usage stats
*/
compareImages(image1Path: string, image2Path: string, prompt: string): Promise<VisionResult>;
/**
* Describe a batch of images
* @param imagePaths - Array of paths to the images
* @param lastBatchContext - Context from the previous batch
* @param prompt - Prompt for the AI
* @returns Description and usage stats
*/
describeBatch(imagePaths: string[], lastBatchContext: BatchContext, prompt: string): Promise<VisionResult>;
}