[HN Gopher] Show HN: tokmon - CLI to monitor your program's Open...
       ___________________________________________________________________
        
       Show HN: tokmon - CLI to monitor your program's OpenAI token costs
        
       Author : ybu
       Score  : 10 points
       Date   : 2023-04-18 17:15 UTC (5 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | catchnear4321 wrote:
       | > tokmon uses the mitmproxy library to intercept HTTP requests
       | and responses between your program and the OpenAI API.
       | 
       | somewhat implied given the cli usage, passing your command to it
       | rather than running your command.
       | 
       | is the output provided really worth the mitm? are the inputs so
       | regular that this is strictly a dev tool?
       | 
       | self-mitm is interesting, just not understanding the value of
       | this over implementing some light auditing in a script.
       | 
       | other than not having to do it, but the user of such a tool could
       | just ask chatgpt to convert code from one language to another. or
       | even scan this code and build a library. if not write the script
       | with cost monitoring baked in.
       | 
       | slippery slope being what it is.
        
       ___________________________________________________________________
       (page generated 2023-04-18 23:02 UTC)