Unable to upload files even after following https://www.librechat.ai/docs/configuration/rag_api #4727
ScubaSlavvo
started this conversation in
Help Wanted
Replies: 1 comment 2 replies
-
The You might consider setting your OpenAI API key higher in the .env file, rather than using "user_provided", at this specific line: Line 174 in 493e64e |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I a using the OpenAI api and wanted to upload files. I followed the steps on the page https://www.librechat.ai/docs/configuration/rag_api
added a
#. RAG_API_URL=http://host.docker.internal:8000 (without the "." i just didn't want the # to edit the text)
line under the "rag" section in the env.example file, along with
sk-your-openai-api-key-example under RAG_OPENAI_API_KEY (also tried just pasting my openAI API key but it did not work)
The error I am getting is : 2024-11-14 14:43:43,926 - root - ERROR - Error code: 401 - {'error': {'message': 'Incorrect API key provided: user_pro*ided. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
Other than this, I can use the API normally.
I am a total beginner at this so i might have messed something basic up. I would appreciate any tips or help !
Thanks in advance !!
Beta Was this translation helpful? Give feedback.
All reactions