mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.95k stars 3.02k forks source link

FetchError: request to https://api.openai.com/v1/embeddings failed #459

Closed wsy258-strar closed 6 months ago

wsy258-strar commented 9 months ago
image

I encountered this problem when running ingest today. I donโ€™t know how to solve it. I hope you can take a look.

dosubot[bot] commented 9 months ago

๐Ÿค–

Hey @wsy258-strar! ๐Ÿ˜„ Good to see you back here. What's cooking?

Based on the error message you've provided, it seems like you're encountering a FetchError when making a request to the OpenAI API. This error can occur due to a variety of reasons such as network issues, incorrect API keys, or expired OpenAI credits.

Here are some steps you can take to troubleshoot this issue:

  1. Check your OpenAI API keys: Make sure that the API keys you're using are correct and valid. You can verify this by logging into your OpenAI account and checking your API keys.

  2. Check your OpenAI credits: Ensure that you have sufficient OpenAI credits to make the API request. If your credits have expired, you'll need to purchase more.

  3. Check your network connection: This error can also occur if there's a problem with your network connection. Try running the code on a different network or use a VPN.

  4. Check the server location: As mentioned in a previous issue, one user was able to resolve a similar error by deploying the code on a server in America.

  5. Check your VPN settings: If you're using a VPN, it might be causing this error. Try switching your VPN software or disabling it to see if that resolves the issue.

If you're still encountering this error after trying these steps, it would be helpful if you could provide more details about the error message you're seeing. This could include the full error stack trace or any additional error messages that are being logged.

For more detailed troubleshooting steps, you can refer to the README.md file in the gpt4-pdf-chatbot-langchain repository.

Please note that I'm unable to view the image you've attached in your message. If there's important information in the image, please provide it in text form.

Sources

#### About Dosu This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a ๐Ÿ‘ if this is helpful and ๐Ÿ‘Ž if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.