GithubHelp home page GithubHelp logo

codezen's People

Contributors

mmaorc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

codezen's Issues

Rate limited by OpenAI

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..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.