Bug Description
Not exactly qualified as a bug, but let me explain.
I'm using the LiteLLM proxy to manage multiple models, API Keys, etc. Wiring it into n8n has been a challenge.
Only the Basic LLM Chain supports the sub-nodes with Ollama Chat or OpenAI Chat which allow for a baseurl to be specified. However, the Basic LLM Chain doesn't seem to conform to the OpenAI message format. While I'm able to get the request through the proxy to the model and back to n8n, the output is garbage because the OpenAI message format isn't used properly.
For that to work properly, I believe I need to use the OpenAI Message Model node. However, this node doesn't accept a baseurl property to be configured to point to my LiteLLM proxy. Instead, it seems to be hardwired to platform.openai.com. Baseurl is available as a parameter to OpenAI clients so should also be supported in the n8n client IMHO.
I believe the fix / feature is to add the baseurl configuration parameter to the OpenAI Message a model node.
I'm trying to avoid using a HTTP request node.
I'm using the self-hosted version via docker. I'm also relatively new to n8n so I may have missed something...
Appreciate any thoughts or suggestions.
To Reproduce
Create a chat workflow:
- Trigger on chat
- OpenAI message model (text) with the chatInput inserted into the message
- Execute chat
Goes directly to OpenAI, because there's no way to configure the baseurl.
Expected behavior
Allow a baseurl parameter in the OpenAI Message Model node like the OpenAI Chat Model and Ollama Chat Model sub-nodes.
Operating System
Mac OS 15.1.1
n8n Version
1.72.1
Node.js Version
20.18.0
Database
SQLite (default)
Execution mode
main (default)
Bug Description
Not exactly qualified as a bug, but let me explain.
I'm using the LiteLLM proxy to manage multiple models, API Keys, etc. Wiring it into n8n has been a challenge.
Only the Basic LLM Chain supports the sub-nodes with Ollama Chat or OpenAI Chat which allow for a baseurl to be specified. However, the Basic LLM Chain doesn't seem to conform to the OpenAI message format. While I'm able to get the request through the proxy to the model and back to n8n, the output is garbage because the OpenAI message format isn't used properly.
For that to work properly, I believe I need to use the OpenAI Message Model node. However, this node doesn't accept a baseurl property to be configured to point to my LiteLLM proxy. Instead, it seems to be hardwired to platform.openai.com. Baseurl is available as a parameter to OpenAI clients so should also be supported in the n8n client IMHO.
I believe the fix / feature is to add the baseurl configuration parameter to the OpenAI Message a model node.
I'm trying to avoid using a HTTP request node.
I'm using the self-hosted version via docker. I'm also relatively new to n8n so I may have missed something...
Appreciate any thoughts or suggestions.
To Reproduce
Create a chat workflow:
Goes directly to OpenAI, because there's no way to configure the baseurl.
Expected behavior
Allow a baseurl parameter in the OpenAI Message Model node like the OpenAI Chat Model and Ollama Chat Model sub-nodes.
Operating System
Mac OS 15.1.1
n8n Version
1.72.1
Node.js Version
20.18.0
Database
SQLite (default)
Execution mode
main (default)