I am attempting to connect to my company’s internally self-hosted AI Large Language Model (LLM). To test this connection to the LLM server, I am using two nodes:
-
The Credentials Configuration Node - where I enter the token.
-
The OpenAI Authentication Node - as my company claims their API URL is OpenAI-compatible.
The OpenAI compitable Base URL provided by my company, which I manually entered into the OpenAI Authentication Node, is:
https://ABC-llm-coordinator-preprod.ml-5w114b15-555.apps.apps.prod5.abc.com/chat/completions
When I execute the “OpenAI Authentication Node,” I receive the following error:
“Execute failed: API connection failed. Please make sure that your base URL ‘https://ABC-llm-coordinator-preprod.ml-5w114b15-555.apps.apps.prod5.abc.com/chat/completions’ is valid and uses a supported (‘http://’ or ‘https://’) protocol. It might also be caused by your network settings, proxy configuration, SSL certificates, or firewall rules.”
Could I get some advice on how to troubleshoot this? Here are my specific questions:
-
Could this be an issue of the Base URL not being compatible with the “OpenAI Authentication Node”? How can I determine this, and what steps can I take to verify it? Is there a way to inspect the source code of the node so I can collaborate with my IT team to confirm if it’s compatible with the base URL and its required parameters?
-
I’ve noticed that other base URLs I’ve previously tested work fine, such as https://api.openai.com/v1 and http://localhost:11434/v1 (for a connection with self-hosted Ollama). Does the base URL need to follow a specific format, like ending with /v1, or is /chat/completions acceptable and irrelevant to the issue?
-
When I enter the base URL (https://ABC-llm-coordinator-preprod.ml-5w114b15-555.apps.apps.prod5.abc.com/chat/completions) into my web browser, I can reach the gateway without any issues and receive a response on the page (not a 404 or blocked page). Can I assume there are no network, firewall, or proxy issues based on this?
-
Should I test the provided base URL using a Python script to rule out network or connectivity problems and narrow the issue down to the Base URL, the “OpenAI Authentication Node,” or my company’s internal LLM server?
I’d appreciate any advice on how to proceed with troubleshooting this issue.