UNPKG

@nomyx/assistant

Version:

A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)

24 lines (19 loc) 527 B
import { ILogger } from '../../../types/common'; import { AnthropicProviderConfig } from './types'; export class AnthropicConfig { private config: AnthropicProviderConfig; private logger: ILogger; constructor(config: AnthropicProviderConfig, logger: ILogger) { this.config = config; this.logger = logger; } get apiKey(): string { return this.config.apiKey; } get model(): string { return this.config.model; } getApiUrl(): string { return 'https://api.anthropic.com/v1/messages'; } }