Git Product home page Git Product logo

Comments (5)

hakimhaniff avatar hakimhaniff commented on May 15, 2024 1

you can add in advance system settings under User Variable to match the Authorization but now my error code is 429. Too Many request

response: {
ok: false,
status: 429,
statusText: 'Too Many Requests',

image

from gpt4-pdf-chatbot-langchain.

mayooear avatar mayooear commented on May 15, 2024

Hey, I think this is a 401 unauthorized error, so there's an issue with your API key not the repo. Have you used up your 'usage' for the api key or violated any moderation terms or exceeded rate limits? Does the api key work through direct calls i.e. postman

from gpt4-pdf-chatbot-langchain.

deweyai avatar deweyai commented on May 15, 2024

Thanks mayooear - I checked with postman and using the same api key I can successfully get embeddings from https://api.openai.com/v1/embeddings

from gpt4-pdf-chatbot-langchain.

deweyai avatar deweyai commented on May 15, 2024

Strange - I noticed the Bearer in the error message is not the API key from my .env file.

Guess I need to figure out where that's coming from - it doesn't match any OpenAI api I have. ๐Ÿ‘Ž

]
error [Error: Request failed with status code 401] {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [AsyncFunction: fetchAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'User-Agent': 'OpenAI/NodeJS/3.2.1',
Authorization: 'Bearer sk-NOT_MY_API_KEY'
},

from gpt4-pdf-chatbot-langchain.

deweyai avatar deweyai commented on May 15, 2024

@hakimhaniff YOU ROCK.

Not sure how I missed that but I had an OLD env variable that had that key... saved my life. ๐Ÿ‘

from gpt4-pdf-chatbot-langchain.

Related Issues (20)

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.