getEnhancers method

  1. @override
List<DioEnhancer> getEnhancers(
  1. dynamic config
)
override

Get list of provider-specific enhancers

Implementation

@override
List<DioEnhancer> getEnhancers(dynamic config) {
  final anthropicConfig = config as AnthropicConfig;

  return [
    // Always add the endpoint-specific headers interceptor
    InterceptorEnhancer(
      _createEndpointHeadersInterceptor(anthropicConfig),
      'AnthropicEndpointHeaders',
    ),
  ];
}