n8n support
I am trying to get the chatmock model to work in n8n but it seems to get stuck on retrieving data.
From Gemini:
The Problem: Because you are using the OpenAI Chat Model node connected to an AI Agent (Tools Agent), n8n expects to handle this tool call internally. However, if n8n isn't configured to handle the "streaming" reasoning or if the connection between the Agent and the Tool node is failing, it captures the "Stop" signal before it can process the tool's result.
2. The "Streaming" Conflict
Look at this line in your logs:
"stream": true.
When Streaming is enabled on a local model server that also provides Reasoning (the "Thinking" tokens), n8n sometimes gets confused. It sees the reasoning text, but since that isn't the "Final Message," it doesn't display it in the output. Then, when the model switches to the tool_calls phase, the node ends its "turn" to let the tool run.
3. Immediate Fixes to Try
Disable Streaming: In your OpenAI Chat Model node settings, look for an option to turn off Stream. This forces the model to finish its entire "thought" (reasoning + tool call) before sending it to n8n, which is much more stable for local servers.
I have deployed it in a docker environment I tried with adding:
- CHATGPT_LOCAL_FORCE_NO_STREAM=true but it doesn't seem to work. Is there a way to disable stream?
Hey, could try setting CHATGPT_LOCAL_REASONING_COMPAT to legacy?
thanks for the reply, in the meanwhile I solved it by using it as a HTTP Request node instead of AI Tool. This way it worked, but only the codex versions.
Hey, could try setting CHATGPT_LOCAL_REASONING_COMPAT to legacy?
I have tried this, and I still receive a 404 error.
This is what Opus had to say about it:
n8n's LangChain integration calls POST /v1/responses, which ChatMock doesn't implement.
ChatMock logs:
192.168.1.4 - - [07/Jan/2026 23:12:13] "POST /v1/responses HTTP/1.1" 404 -Current ChatMock endpoints (from routes_openai.py):
POST /v1/chat/completions ✅ POST /v1/completions ✅ GET /v1/models ✅ POST /v1/responses ❌ Missing
The /v1/responses endpoint is OpenAI's Responses API. n8n's OpenAI Chat Model node (via LangChain) expects this endpoint to exist.
Suggested fix: Add a /v1/responses route that proxies to the existing chat completions logic, or alias it to /v1/chat/completions.
Workaround: Use n8n's HTTP Request node to call /v1/chat/completions directly instead of the OpenAI Chat Model node.
Hey, could try setting CHATGPT_LOCAL_REASONING_COMPAT to legacy?
Can you add a fast mode for version 5.4?