ccproxy.testing.response_handlers¶
ccproxy.testing.response_handlers
¶
Response processing utilities for testing.
ResponseHandler
¶
Handle responses from both Anthropic and OpenAI formats.
process_response
¶
Process response based on format and streaming.
Source code in ccproxy/testing/response_handlers.py
MetricsExtractor
¶
Extract metrics from API responses.
extract_token_metrics
staticmethod
¶
Extract token usage from response data.
Source code in ccproxy/testing/response_handlers.py
extract_content
staticmethod
¶
Extract text content from response data.