openai_pricing_logger is a Python package that logs OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.
To install openai_pricing_logger, run the following command in your terminal:
pip install openai_pricing_logger
from logger_package import openai_api_listener
import openai
with openai_api_listener():
# Your OpenAI API calls go here
Contributions are welcome! Please feel free to open issues and submit pull requests on the GitHub repository.
openai_pricing_logger is licensed under the MIT License.