Open Bewinxed opened 1 year ago
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
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.
No way to throttle it to go sequentially?
On Sat, 25 Mar 2023 at 4:36 PM Sam Hogan @.***> wrote:
You're hitting up again 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.
— Reply to this email directly, view it on GitHub https://github.com/context-labs/autodoc/issues/6#issuecomment-1483827174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFY5BM2TMXXYXBNHO5PQU3W53YETANCNFSM6AAAAAAWHRFTFE . You are receiving this because you authored the thread.Message ID: @.***>
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.
I face this issue even for smaller projects; how can this be solved?
https://github.com/Prem95/DataSciencePortfolio was my test attempt
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.
Thanks for the tip! This is what I'm looking for.
On Wed, 29 Mar 2023 at 8:05 PM Nilo Silva @.***> wrote:
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.
— Reply to this email directly, view it on GitHub https://github.com/context-labs/autodoc/issues/6#issuecomment-1488978514, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFY5BLOWOSHDG56JF2SHHLW6RTT3ANCNFSM6AAAAAAWHRFTFE . You are receiving this because you authored the thread.Message ID: @.***>
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
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
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 sorted)]: null
},,`
Unsure what the issue is
https://github.com/context-labs/autodoc/issues/6#issuecomment-1488978514
The problem with that is we need to built autodoc from source, we should let this value be configurable from the .autodoc config
@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
Yes it is recommended to have a paid OpenAI account with GPT-4 access to use autodoc.
Indexing as usual, after estimation, it runs for a bit then keeps throwing this error: