ApiConfig.anthropic constructor

ApiConfig.anthropic({
  1. required String apiKey,
  2. String model = 'claude-sonnet-4-20250514',
  3. int maxTokens = 16384,
})

Default Anthropic configuration.

Implementation

factory ApiConfig.anthropic({
  required String apiKey,
  String model = 'claude-sonnet-4-20250514',
  int maxTokens = 16384,
}) => ApiConfig(
  type: ApiProviderType.anthropic,
  baseUrl: 'https://api.anthropic.com',
  apiKey: apiKey,
  model: model,
  maxTokens: maxTokens,
);