// OpenAI Provider — OpenAI-compatible chat completions

import { OpenAICompatibleProvider } from './openai-compatible.mjs';

export class OpenAIProvider extends OpenAICompatibleProvider {
  constructor(config) {
    super({
      ...config,
      name: 'openai',
      baseUrl: config.baseUrl || 'https://api.openai.com/v1',
      model: config.model || 'gpt-4o-mini',
      useMaxCompletionTokens: true,
    });
  }
}
