Comments (8)
Hi @robertcedwards just shooting in the dark, was one of your topics les then 4 characters? I will need to fix it on our end in the news api, but as for now tavily take a minimum of 4 chars.
from gpt-newspaper.
Interesting, just Web3 was a 4-char. Let me make sure I properly exported the API keys too, but I think it already made an auth'd call.
from gpt-newspaper.
perfect. lmk know it works with greater than 4 char topics and I'll update you once fixed.
from gpt-newspaper.
I tried it with just a single topic that had more chars and it worked. Thanks for the help and persistence!
from gpt-newspaper.
Also, running into some rate limits, not sure if there are some error handling issues here, don't think it will try again.
File "/Users/robertedwards/Documents/Projects/gpt-newspaper/gpt-newspaper/lib/python3.9/site-packages/openai/_base_client.py", line 959, in _request
raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-4 in organization org-4do9SrRAEt8fzaKFeoFMaM1A on tokens per min (TPM): Limit 10000, Used 9979, Requested 2920. Please try again in 17.394s. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}
from gpt-newspaper.
I've seen this error as well, confirmed the cause is the chinese characters:
had some web search, have not get solution yet.
from gpt-newspaper.
I got the same error. I had 3 words in the search. 2 with 6 letters and 1 with 4. None of them had any special characters.
Removing the word with 4 letters resolved it.
from gpt-newspaper.
I got a similar error. After double checked api keys and restarted my computer, everything is fine.
from gpt-newspaper.
Related Issues (12)
- Article prompts need filtering for special characters that cannot be part of a valid file name HOT 4
- 422 Client Error: Unprocessable Entity for url: https://api.tavily.com/search
- Allow GPT 4 Turbo? HOT 1
- Rate limit exceeded error - Any way to set the rate limit ? HOT 3
- There is no result on the test HOT 1
- Text creator
- 422 Client Error: Unprocessable Entity for url: https://api.tavily.com/search HOT 6
- tokens limit
- work badly with chinese content HOT 1
- Type error: unexpected keyword argument 'start_key' HOT 1
- HTTPError('400 Client Error: Bad Request for url: https://api.tavily.com/search') 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 gpt-newspaper.