mmaorc / codezen Goto Github PK
View Code? Open in Web Editor NEWYour indispensable partner in programming
License: MIT License
Your indispensable partner in programming
License: MIT License
This extension is promising and I'm not really raising an issue about it per se but when I tried to run it on my company's webapp, it exploded OpenAI rate limitations: max 10K tokens, but requested 4M tokens. The src folder of my repo has 500K lines, 1M words and 22M characters. Luckily it just aborted the request to OpenAI but if I didn't have a limit set it could have charged me a lot... Maybe a warning would be nice? With an eyeball'd price estimation directly from the command line, that would be nice innit?:)
Also I don't know if CodeZen ignores files it should ignore (like node_modules content), but it could probably be a good optimization.
nino@nino~/tc/tucanamapchart-drill$ python -m codezen "hello"
WARNING:langchain.chat_models.openai:Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 1.0 seconds as it raised RateLimitError: Request too large for gpt-4 in organization org-65KOwu1Jpk9B135J7b4ViPyO on tokens per min (TPM): Limit 10000, Requested 4182863. The input or output tokens must be reduced in order to run successfully. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing..
WARNING:langchain.chat_models.openai:Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 2.0 seconds as it raised RateLimitError: Request too large for gpt-4 in organization org-65KOwu1Jpk9B135J7b4ViPyO on tokens per min (TPM): Limit 10000, Requested 4182863. The input or output tokens must be reduced in order to run successfully. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing..
Adding known binary file extensions will make the file load more robust.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.