Comments (13)
where exactly I should change this? currently it is 50
node_modules/@context-labs/autodoc/dist/cli/utils/APIRateLimit.js
Just remove the parameter and set this.maxConcurrentCalls
directly
from autodoc.
I was getting this error immediately on a pretty small repository (136 files). I changed APIRateLimit
manually (this.maxConcurrentCalls = 1;
) and managed to index all files, though it took a few minutes.
from autodoc.
The problem with that is we need to built autodoc from source, we should let this value be configurable from the .autodoc config
from autodoc.
Just got this email from openAI
Hi there,
Your OpenAI API key was determined to have been leaked, which has triggered a key rotation and this friendly notification email.
This may be because you committed your API key to an online service such as GitHub, or your key may have been compromised in another way.
Don't worry, you still have API access! Head over to the [API Keys](https://mandrillapp.com/track/click/31165340/platform.openai.com?p=eyJzIjoiaV9DU0RkMFdkQkg1cUJRQlVQdmJGWTRCZmI4IiwidiI6MSwicCI6IntcInVcIjozMTE2NTM0MCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3BsYXRmb3JtLm9wZW5haS5jb21cXFwvYWNjb3VudFxcXC9hcGkta2V5c1wiLFwiaWRcIjpcIjg2YmU5MTMwZDNhYTRlZWNiMjZlNDljNTA3ZDljZTQzXCIsXCJ1cmxfaWRzXCI6W1wiZGRlMTIyMmY1ZjBmNGVlOWEwNGY2NzdkZDQ2N2ZjN2MyNTllN2U4MFwiXX0ifQ) page to view your updated API key.
If your API key was stored in any locations - for instance, in code you are running - it will need to be updated before you can run this code again.
Finally, we ask that you please review our [best practices for API key safety](https://mandrillapp.com/track/click/31165340/help.openai.com?p=eyJzIjoiNUhhYkNXSWxjS25Gd01sakxNWExUTFJYYUlZIiwidiI6MSwicCI6IntcInVcIjozMTE2NTM0MCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL2hlbHAub3BlbmFpLmNvbVxcXC9lblxcXC9hcnRpY2xlc1xcXC81MTEyNTk1LWJlc3QtcHJhY3RpY2VzLWZvci1hcGkta2V5LXNhZmV0eVwiLFwiaWRcIjpcIjg2YmU5MTMwZDNhYTRlZWNiMjZlNDljNTA3ZDljZTQzXCIsXCJ1cmxfaWRzXCI6W1wiNzI4ODA0ZmM5MzY4OWEyZTk2MDE2ZDNhYzYyZjhmZGY0MTc5MGJkOVwiXX0ifQ).
Best,
The OpenAI team
from autodoc.
You're hitting up against the maximum number of requests that OpenAI allows. This can happen in large projects.
We'll be adding improvements to handle this more gracefully in the near future.
Edit: your open AI key is viewable in the terminal output you posted. You should delete your post and rotate your key immediately.
from autodoc.
from autodoc.
Sequentially would take a very long time for large projects using slower models.
Right now we parallelize up to 25 requests at a time but it's not perfect. Checkout RateLimit.ts in the project for more info.
If you can improve this, I'll merge it right away.
from autodoc.
I face this issue even for smaller projects; how can this be solved?
https://github.com/Prem95/DataSciencePortfolio was my test attempt
from autodoc.
from autodoc.
I was getting this error immediately on a pretty small repository (136 files). I changed
APIRateLimit
manually (this.maxConcurrentCalls = 1;
) and managed to index all files, though it took a few minutes.
where exactly I should change this? currently it is 50
from autodoc.
where exactly I should change this? currently it is 50
node_modules/@context-labs/autodoc/dist/cli/utils/APIRateLimit.js
Just remove the parameter and setthis.maxConcurrentCalls
directly
Even after adding the line, i still get
response: { ok: false, status: 429, statusText: 'Too Many Requests', headers: HeadersList { [Symbol(headers map)]: [Map], [Symbol(headers map sorted)]: null },,
Unsure what the issue is
from autodoc.
@ALL After switching to a pay as you go api key from a free trail api key, I am able to bypass this 429 rate limit error. But this error might still affect us all if OpenAI changes its rate limit
And here is OpenAI guide to implement rate throttle based on your manully set limit : https://github.com/openai/openai-cookbook/blob/main/examples/How_to_handle_rate_limits.ipynb
from autodoc.
Yes it is recommended to have a paid OpenAI account with GPT-4 access to use autodoc.
from autodoc.
Related Issues (20)
- Error: this.callbackManager.handleLLMError is not a function HOT 6
- ReferenceError: Headers is not defined HOT 2
- Error: TypeError: Cannot read properties of undefined (reading 'length') HOT 2
- autodoc-ker: Repo for us to share OSS [Autodoc](https://github.com/context-labs/autodoc) indexes. HOT 2
- Create a `doc faq` script, that takes in a list of questions and generates an FAQ.md file (after the repo has been indexed) HOT 2
- Error during traversal: The text contains a special token that is not allowed HOT 3
- folder summary.json url seems to include the `.autodoc/docs/json` in the path
- no summary HOT 1
- Dialog with Autodoc using SshNet
- Ingesting/Parsing Multiple Libraries HOT 2
- Leverage LangChain Git Repo Loader
- 404s back from OpenAI HOT 2
- Could be used to index documents like pdfs and talk to them ? HOT 2
- Database can be shared? HOT 2
- OpenAI Base url? HOT 1
- Add support for GPT4ALL models
- Thinking...Something went wrong: this.callbackManager.handleLLMError is not a function HOT 4
- Azure OpenAI Support HOT 1
- Use local working directory instead of a GitHub URL HOT 1
- `checksum` is not being computed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autodoc.