import { OpenAIProviderConfig } from './types';
import { ILogger } from '../../../types/common';

export class OpenAIConfig {
  private apiKey: string;
  private model: string;
  private type: string;
  private logger: ILogger;

  constructor(config: OpenAIProviderConfig, logger: ILogger) {
    this.apiKey = config.apiKey;
    this.model = config.model;
    this.type = config.type || 'openai';
    this.logger = logger;
  }

  getApiKey(): string {
    return this.apiKey;
  }

  getModel(): string {
    return this.model;
  }

  getType(): string {
    return this.type;
  }

  getLogger(): ILogger {
    return this.logger;
  }
}