ccproxy.plugins.max_tokens.service¶
ccproxy.plugins.max_tokens.service
¶
Service for managing token limits and max_tokens modifications.
TokenLimitsService
¶
Service for managing model token limits and max_tokens modifications.
Source code in ccproxy/plugins/max_tokens/service.py
get_max_output_tokens
¶
should_modify_max_tokens
¶
Determine if max_tokens should be modified for the request.
Source code in ccproxy/plugins/max_tokens/service.py
modify_max_tokens
¶
Modify max_tokens in request data if needed.
Source code in ccproxy/plugins/max_tokens/service.py
initialize
¶
Initialize the service.