/** * OpenAI Provider * * Creates a Provider that talks to the OpenAI Chat Completions API. * Uses fetch directly — no external SDK dependency. * * Supports: * - Configurable model (default: gpt-4.1) * - Configurable base URL (for Azure / OpenAI-compatible endpoints) * - Tool/function calling with automatic format conversion * - API key resolution from secrets-engine */ import type { Provider, SecretsManagerInterface } from '@tinyclaw/types'; export interface OpenAIProviderConfig { secrets: SecretsManagerInterface; /** Model to use (default: 'gpt-4.1'). */ model?: string; /** Base URL for the API (default: 'https://api.openai.com'). */ baseUrl?: string; } export declare function createOpenAIProvider(config: OpenAIProviderConfig): Provider;