Coder Social home page Coder Social logo

Comments (8)

rotemweiss57 avatar rotemweiss57 commented on June 28, 2024

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.

robertcedwards avatar robertcedwards commented on June 28, 2024

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.

rotemweiss57 avatar rotemweiss57 commented on June 28, 2024

perfect. lmk know it works with greater than 4 char topics and I'll update you once fixed.

from gpt-newspaper.

robertcedwards avatar robertcedwards commented on June 28, 2024

I tried it with just a single topic that had more chars and it worked. Thanks for the help and persistence!

from gpt-newspaper.

robertcedwards avatar robertcedwards commented on June 28, 2024

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.

shaojun avatar shaojun commented on June 28, 2024

I've seen this error as well, confirmed the cause is the chinese characters:
image

had some web search, have not get solution yet.

from gpt-newspaper.

badcom avatar badcom commented on June 28, 2024

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.

flyspirit99 avatar flyspirit99 commented on June 28, 2024

I got a similar error. After double checked api keys and restarted my computer, everything is fine.

from gpt-newspaper.

Related Issues (12)

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.