danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.62k stars 2.92k forks source link

[Bug]: DALLE_API_KEY does not work as expected #1792

Closed iamNoah1 closed 7 months ago

iamNoah1 commented 7 months ago

What happened?

According to the docs, setting this env variable should result in the app not asking the user for an DALLE API KEY when trying to install the plugin. However, for me it did not work, I had to set DALLE2_API_KEY to achieve the desired goal.

Steps to Reproduce

  1. Uncomment and set DALLE_API_KEY
  2. Make sure that ENDPOINTS contain gptPlugins
  3. Open the app and try to install dalle
  4. It will ask for an OPENAI API KEY
  5. ...
  6. You could now check the working version by setting DALLE2_API_KEY
  7. Repeat the steps before and see that it does ask for the OPENAI API KEY now

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct

danny-avila commented 7 months ago

For the user_provided feature this is intended but I will clarify in the docs to close this issue.

DALLE_API_KEY will work for either DALLE3 or DALLE2 if set to an actual api key.

danny-avila commented 7 months ago

I will also revisit the code to see if I can make an easy switch to make it work more intuitively

fuegovic commented 7 months ago
  1. Uncomment and set DALLE_API_KEY ...
  2. It will ask for an OPENAI API KEY

    DALLE_API_KEY will work for either DALLE3 or DALLE2 if set to an actual api key.

It does work as expected on my end, try updating to latest if you haven't yet

danny-avila commented 7 months ago
  1. Uncomment and set DALLE_API_KEY ...
  2. It will ask for an OPENAI API KEY

DALLE_API_KEY will work for either DALLE3 or DALLE2 if set to an actual api key.

It does work as expected on my end, try updating to latest if you haven't yet

oh that's right, my bad. it will work on the latest commit.