UNPKG

sfcoe-ailabs

Version:

AI-powered code review tool with static analysis integration for comprehensive code quality assessment.

14 lines (13 loc) 558 B
import { AIProvider, AIProviderType } from './index.js'; export default class AIProviderFactory { /** * Gets an AI provider instance * * @param type - The type of AI provider to create * @param token - The API token for the provider * @param model - The model name to use * @returns An instance of the specified AI provider * @throws Error when the provider type is unsupported */ static getInstance(type: AIProviderType, token: string, model: string, apiEndpoint?: string, apiVersion?: string): AIProvider; }