Use your own Pricing File to calculate LLM usage costs
pricing_json
variable, which can either be a file path or a URL pointing to a custom JSON file. This file should contain pricing details such as the model names and their associated costs in USD per 1000 tokens for chat-based models.
Example Usage: