ccproxy.plugins.max_tokens.adapter¶
ccproxy.plugins.max_tokens.adapter
¶
Max tokens adapter implementation using hook system.
MaxTokensHook
¶
MaxTokensAdapter
¶
Max tokens adapter using hook-based request interception.
Source code in ccproxy/plugins/max_tokens/adapter.py
initialize
async
¶
Initialize the adapter and register hooks.
Source code in ccproxy/plugins/max_tokens/adapter.py
cleanup
async
¶
Cleanup resources.
Source code in ccproxy/plugins/max_tokens/adapter.py
get_modification_stats
¶
Get statistics about max_tokens modifications.