pashpashpash / vault-ai

OP Vault ChatGPT: Give ChatGPT long-term memory using the OP Stack (OpenAI + Pinecone Vector Database). Upload your own custom knowledge base files (PDF, txt, epub, etc) using a simple React frontend.
https://vault.pash.city
MIT License
3.25k stars 306 forks source link

openAI embedding error timeout #83

Open LeviHan999 opened 1 year ago

LeviHan999 commented 1 year ago

I finally run the program, and localhost:8100 was set up. but when I tried to upload files, it takes a few minutes, and told me the following error.

Reason: Error getting embeddings: Post "https://api.openai.com/v1/embeddings": dial tcp [2a03:2880:f10c:83:face:b00c:0:25de]:443: i/o timeout

the URL said:

{
    "error": {
        "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

I am using a VPN, and node version is V18, not V19 as pashpashpash used.

I really can't do anything with this, can anyone help, thank you very much!

mathiash98 commented 7 months ago

Dude, the error message LITERALLY states that you need to provide an API key. And where to find it. Just do exactly what the error message says.