/** * LLM-based knowledge extractor using OpenAI-compatible chat completions API. * * Implements the LLMProvider interface so it can be plugged directly into * DocumentExtractor as the `llmProvider` option. * * Configuration via environment variables: * OPENAI_API_KEY — required * OPENAI_BASE_URL — optional, defaults to https://api.openai.com/v1 * OPENAI_MODEL — optional, defaults to gpt-4o-mini */ import type { LLMProvider } from '../adapter/llm-provider.js'; export interface OpenAILLMProviderOptions { apiKey?: string; baseUrl?: string; model?: string; /** Request timeout in milliseconds (default 60_000) */ timeoutMs?: number; } export declare class OpenAILLMProvider implements LLMProvider { private apiKey; private baseUrl; private model; private timeoutMs; constructor(options?: OpenAILLMProviderOptions); /** Check whether an API key is available. */ static isAvailable(): boolean; complete(prompt: string): Promise; } //# sourceMappingURL=llm-extractor.d.ts.map