# Chat and LLM Support for OpenAI Proxy Server? \[GOT CREATED\]

**URL:** <https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574>\
**Category:** Feature Requests (done)\
**Tags:** langchain\
**Created:** [February 20, 2024, 6:32pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574 "2024-02-20T18:32:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darien\_Kindlund](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/darien_kindlund/32/62626_2.png) [@Darien\_Kindlund](https://community.n8n.io/u/Darien_Kindlund)\
**Post date:** [February 20, 2024, 6:32pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/1 "2024-02-20T18:32:05Z")

</div>

## The idea is:

I would love to create an n8n workflow that uses my [OpenAI Proxy Server](https://docs.litellm.ai/docs/simple_proxy), which supports the same API as standard OpenAI, but is reachable from a different URL/endpoint.

In Flowise, this functionality is supported in their [ChatLocalAI](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/chatmodels/ChatLocalAI/ChatLocalAI.ts) node type.

## My use case:

If I’m going to use n8n workflows that leverage LLMs, I need to be able to add in load-balancing, failover, and recovery support. Rather than bake that logic into each/every n8n workflow, I’d rather like to have that logic centralized in the OpenAI Proxy Server for consistency.

## I think it would be beneficial to add this because:

It allows users to create n8n workflows that use LLMs in a more resilient manner.

## Any resources to support this?

> <https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/chatmodels/ChatLocalAI/ChatLocalAI.ts>

## Are you willing to work on this?

Yes. Happy to contribute testing/verification to this.

---

<div class="post-metadata">

**Author:** ![Darien\_Kindlund](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/darien_kindlund/32/62626_2.png) [@Darien\_Kindlund](https://community.n8n.io/u/Darien_Kindlund)\
**Post date:** [March 19, 2024, 8:57pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/2 "2024-03-19T20:57:13Z")

</div>

Update: This is already supported in n8n. Just use the standard `OpenAI Chat Model` and point it to your LiteLLM Proxy server.

---

<div class="post-metadata">

**Author:** ![maugernot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maugernot/32/49543_2.png) [@maugernot](https://community.n8n.io/u/maugernot)\
**Post date:** [November 26, 2024, 10:17pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/3 "2024-11-26T22:17:53Z")

</div>

Hi, I’ve tried to do that, but how should I authenticate? because LiteLLM uses Autorization header and the OpenAI Chat Model only allow to use OpenAI credentials format

---

<div class="post-metadata">

**Author:** ![Darien\_Kindlund](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/darien_kindlund/32/62626_2.png) [@Darien\_Kindlund](https://community.n8n.io/u/Darien_Kindlund)\
**Post date:** [November 26, 2024, 10:35pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/4 "2024-11-26T22:35:27Z")

</div>

LiteLLM supports the same credential format as OpenAI

---

<div class="post-metadata">

**Author:** ![TAN\_YONG\_SHENG](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tan_yong_sheng/32/30275_2.png) [@TAN\_YONG\_SHENG](https://community.n8n.io/u/TAN_YONG_SHENG)\
**Post date:** [March 20, 2025, 8:28am UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/6 "2025-03-20T08:28:47Z")

</div>

Although litellm is openai-compatible, I can’t find ways to add metadata to openai node for litellm and langfuse’s logging

For example, we need a LiteLLM node so that we could pass in extra metadata we want to log into self-hosted litellm proxy and langfuse

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/5/f5e80ec18e46da0b36c3bc84ef045a5bf7c441d3.png)

---

<div class="post-metadata">

**Author:** ![Darien\_Kindlund](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/darien_kindlund/32/62626_2.png) [@Darien\_Kindlund](https://community.n8n.io/u/Darien_Kindlund)\
**Post date:** [March 21, 2025, 12:19pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/7 "2025-03-21T12:19:58Z")

</div>

Agreed. @bartv , is there any chance the devs working on the LLM nodes could add the ability to pass custom _metadata_ through to the LLM provider? More and more LLM vendors are offering unique features that can _only_ be enabled if we have the ability to pass custom metadata through from n8n.

---

<div class="post-metadata">

**Author:** ![Jehangir\_Chaudhry](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jehangir_chaudhry/32/58807_2.png) [@Jehangir\_Chaudhry](https://community.n8n.io/u/Jehangir_Chaudhry)\
**Post date:** [April 29, 2025, 12:49am UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/8 "2025-04-29T00:49:02Z")

</div>

Any chance we could get an update if this will be possible @bartv, I am using LiteLLM similar to google ADK. Any hosting an OpenAI style /chat/completions fastapi through google Apigee. Apigee requires me to pass certain headers for authentication when using the openai sdk to interact. Can we add the ability to pass metadata or headers to OpenAI model node?

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [July 28, 2026, 3:15pm UTC](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/9 "2026-07-28T15:15:55Z")

</div>

This has been added and is available from `n8n@1.19.0`
