The tokencounter service is a processor (micro-service) that runs by default in the Gecholog container. tokencounter extracts token consumption fields from the response payload and creates a new field in the log that enables standardized reporting across different models. tokencounter can also throttle the traffic based on token consumption.
Options
Option
Description
-a
alias, set the name of the service
-o
specify filepath to configuration file
--validate
print config validation info (accepts stdin)
--version
print version
Example
This is how to validate a new config file in the docker context