jstextfromimage
Version:
Get descriptions of images from OpenAI, Azure OpenAI and Anthropic Claude models. Supports both URLs and local files with batch processing capabilities.
10 lines (9 loc) • 472 B
TypeScript
import { AzureOpenAIOptions, AzureOpenAIConfig, BatchResult } from './types';
export declare class AzureOpenAIService {
private client;
constructor(config?: AzureOpenAIConfig);
private init;
getDescription(imageUrl: string, { prompt, maxTokens, systemPrompt }?: AzureOpenAIOptions): Promise<string>;
getDescriptionBatch(imageUrls: string[], options?: AzureOpenAIOptions): Promise<BatchResult[]>;
}
export declare const azureOpenai: AzureOpenAIService;