/** * OpenAI SDK Adapter * Supports: OpenAI, Azure OpenAI, OpenAI-compatible APIs */ import type { AdapterConfig, GenerateOptions, GenerateResult, ModelCapabilities, ModelClient } from '@artemiskit/core'; export declare class OpenAIAdapter implements ModelClient { private client; private embeddingClient; private config; readonly provider: string; constructor(config: AdapterConfig); generate(options: GenerateOptions): Promise; stream(options: GenerateOptions, onChunk: (chunk: string) => void): AsyncIterable; embed(text: string, model?: string): Promise; capabilities(): Promise; close(): Promise; private normalizePrompt; private mapFinishReason; /** * Determine if model requires max_completion_tokens instead of max_tokens * Newer models (GPT-4o, GPT-4.5, GPT-5, o1, o3, mini variants) require the new parameter * * @param model - The deployment name or model name used in the API call */ private shouldUseMaxCompletionTokens; } //# sourceMappingURL=client.d.ts.map