8000 GitHub - Loongphy/chatgpt-usage: Analyze exported ChatGPT conversation data to understand model usage patterns, especially for "o3" inference models. Helps track usage against limits.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Analyze exported ChatGPT conversation data to understand model usage patterns, especially for "o3" inference models. Helps track usage against limits.

Notifications You must be signed in to change notification settings

Loongphy/chatgpt-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Usage Analyzer

中文说明 (Chinese Readme)

Purpose

This project helps analyze your ChatGPT usage data, particularly in light of usage limits (e.g., for "o3" inference models). By processing your exported conversation data, you can get insights into your model utilization patterns.

(chatgpt-usage) ⋊> ~/chatgpt-usage on main ◦ uv run main2.py                                                19:20:01
Calculating model usage for the period:
Start: 2025-05-12 00:00:00 UTC (Timestamp: 1747008000.0)
End:   2025-05-18 23:59:59 UTC (Timestamp: 1747612799.999999)
------------------------------
Model Usage Counts:
  gpt-4o: 52
  o3: 53
  o4-mini-high: 114
  research: 3
  o4-mini: 6

Usage

  1. Export Your Data:

    • Go to your ChatGPT account settings.
    • Request an export of your data.
    • You will receive an email with a download link.
  2. Prepare conversations.json:

    • Download the exported data (usually a .zip file).
    • Unzip the file. You should find a conversations.json file inside.
    • Place this conversations.json file in the same directory as the Python scripts (main.py, main2.py).
  3. Run Analysis Scripts:

    • To analyze all your conversation data:

      python main.py

      The results will be logged to main.log.

    • To analyze data from the last 7 days:

      python main2.py

      The results will be printed to the console.

Scripts

  • main.py: Processes the entire conversations.json file and logs detailed model usage statistics, both overall and per conversation.
  • main2.py: Processes conversations.json but filters for messages from the last seven days, providing a summary of recent model usage.

About

Analyze exported ChatGPT conversation data to understand model usage patterns, especially for "o3" inference models. Helps track usage against limits.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0