@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
32 lines (26 loc) • 635 B
text/typescript
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;
}
}