When I try to connect to OpenAI using Flowise I get connection error

I have an issue while using Flowise AI on a docker desktop container that presents a connection error.
Steps to reproduce :

  1. Download FlowiseAI githup repo from their github using git clone
  2. Download and install Docker Container
  3. Download and install latest verion of Node.js (not sure if necessary)
  4. open cmd (or powershell) as an admin and navigate to the docker folder
  5. Copy the .env.example and specify the port and change the file name to just .env
  6. Run the command docker-compose up -d
  7. open localhost:3000 by default
  8. choose the template for a simple llm response (exp translator)
  9. Put in the Openai credentials (api key)
  10. Run the pipeline and give a prompt message
  11. wait for a response and get a connection error
1 Like

I’d try to run a shell (curl) command to test if your API key is good or not, and then go from there.

1 Like

Hello, sorry for the late response, can you help me with explaining how exactly ? I use my OpenAI Key with Python and I am sure it is valid and works

I can’t even remember what the equivalent command is in Windows for a Linux curl command. I’m a Linux guy nowadays. But to be more specific, I’d try to ssh into your docker container that’s running your OpenAI, and see if you can successfully do an API call from a terminal inside that docker container. It might just be a network connectivity issue, where your container isn’t able to reach the web somehow.

2 Likes

Hello once again, Well I thought of it as well but when i add another node from flowise using a HuggingFace model and I specify the LLM such as Mistral or GPT-2, it works and I get a response :confused: therefore I am certain the docker container has access to the web. Thank you very much btw for your help I appreciate it immensly.

1 Like