apiKeyEnvironmentVariable property

String get apiKeyEnvironmentVariable

Environment variable consulted for the API key.

Implementation

String get apiKeyEnvironmentVariable => switch (this) {
      AiProviderKind.openai => 'OPENAI_API_KEY',
      AiProviderKind.anthropic => 'ANTHROPIC_API_KEY',
    };