Open AI chat model issue

!-- Hey! The fastest way to find solutions is by using the :magnifying_glass_tilted_right: search function at the upper right.
If your question hasn’t been asked before, please follow the template below. Skip the questions that are not relevant to you. →

Describe the problem/error/question

ello everyone,
I’m having an issue while trying to choose an AI model from the AI Agent / OpenAI Chat Model node in n8n.

Whenever I open the model dropdown, the list does not load and I receive this error:

“Could not select the model from the chat model list.”

Because of this, I’m unable to choose any model and proceed with my workflow.

:wrench: My Setup

  • n8n is self-hosted on a VPS

  • I am able to connect to OpenAI (API key is working)

  • The error appears only when loading the model list in the UI

:red_question_mark: What I’ve Tried

  • Restarted n8n

  • Checked environment variables

  • Cleared browser cache and hard refreshed

Has anyone faced this issue before, or knows what might be causing the model list to fail loading in the AI Agent node?

Any help would be greatly appreciated.
Thank you!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.2.6
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Hostinger VPS
  • Operating system: windows 11

Usually this occurs when the api is incorrect, and your using hostinger, which means its not a internet problem most likely. Try restarting your VPS?

Can you try it once while hosting locally using the below command. Just want to determine if the issue is on your VPS or something local with your browser

npx n8n