WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Launcher Installation Crashes on Windows 11 When Entering OpenAI API Key

Open prathameshbelurkar opened this issue 1 year ago • 8 comments

The installation terminal for wren-launcher crashes unexpectedly when entering the OpenAI API key during the setup process.

Steps to Reproduce:

  1. Run the Windows installer wren-launcher-windows.exe as an administrator.
  2. Select "OpenAI" as the LLM during the setup process.
  3. Paste the OpenAI API key and press Enter.
  4. Observe that the installation terminal window closes immediately, preventing the installation from completing.

Expected

Installation should proceed further OR appropriate error message should display

System Configuration

OS: Win11 Docker Desktop: v4.22 WrenAI Release: 0.14.0

prathameshbelurkar avatar Jan 23 '25 02:01 prathameshbelurkar

Making sure that docker daemon is already running

prathameshbelurkar avatar Jan 23 '25 02:01 prathameshbelurkar

@prathameshbelurkar could you share the screenshot containing any error message you encountered? Or a short clip?

cyyeh avatar Jan 23 '25 12:01 cyyeh

i have met this problem too,how to solve

Perish11 avatar Jan 24 '25 09:01 Perish11

@Perish11 could you join our discord server and DM me(Jimmy)?

https://discord.gg/5DvshJqG8Z

cyyeh avatar Jan 24 '25 09:01 cyyeh

@prathameshbelurkar @Perish11 this issue may due to you haven't pay some api credit to OpenAI. (it's different service from ChatGPT)

cyyeh avatar Feb 07 '25 22:02 cyyeh

@cyyeh Ohh, yes! Initially, when I tried on my Windows machine, the CLI closed within a fraction of a second, making it difficult to see the error message (due to Windows' default behavior). However, when I tried on my Linux machine, I was able to see the following error message:

Image

Is this the correct OpenAI dashboard to generate an API key?

Image

I generated my API key from here, but it had a 0 credit balance! Maybe I need to try with a custom LLM instead.

prathameshbelurkar avatar Feb 09 '25 09:02 prathameshbelurkar

If that's the case, it's showing 'Invalid API Key' with a status code of 429!

prathameshbelurkar avatar Feb 09 '25 09:02 prathameshbelurkar

Yes, that means you need to pay some api credits to OpenAI first. Seems the issue is fixed, I will close it now.

cyyeh avatar Feb 09 '25 10:02 cyyeh