langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Add LiteLLM Connector

Open flefevre opened this issue 2 years ago • 7 comments

Feature Request

I would like to suggest adding a connector for LiteLLM to LangFlow. LiteLLM is a lightweight and fast open-source library for integrating various LLM providers with a simplified interface. Including this connector in LangFlow would offer several benefits:

Broader compatibility: Support for multiple LLM providers through LiteLLM's unified interface.

Improved usability: Simplifies the process of integrating and switching between LLMs.

Community adoption: LiteLLM has an active and growing user base, making it a valuable addition to LangFlow.

Proposed Solution

  1. Create a new connector module in LangFlow that interfaces with LiteLLM.
  2. Ensure compatibility with key LiteLLM features, such as provider switching and request optimization.
  3. Provide documentation and examples for users to set up and use the LiteLLM connector.

This feature would make LangFlow more versatile and appealing to users seeking streamlined LLM integration

Motivation

This enhancement aligns with LangFlow's goal of being a versatile platform for LLM integration. The inclusion of LiteLLM would:

Solve the challenge of managing multiple LLM providers with a unified interface.

Reduce friction for users who often switch between providers or experiment with different LLMs.

Leverage LiteLLM’s active community for broader adoption and support.

Thank you for considering this proposal!

Your Contribution

I could test asap this component and share a basic flow.

flefevre avatar Nov 21 '24 06:11 flefevre

By adding Litellm, you will also unleash the power of Vllm which is as famous as Ollama https://github.com/vllm-project/vllm

LiteLLM is fully openai ai compatible and so the work to be done sould be really easy by duplicating a component such as Ollama?

flefevre avatar Nov 21 '24 07:11 flefevre

Going deeper I have found this : https://github.com/langflow-ai/langflow/issues/3401 So the code is here... Could you reactivate such LiteLLM feature?

flefevre avatar Nov 21 '24 10:11 flefevre

we have made our own litellm component.

flefevre avatar Feb 12 '25 21:02 flefevre

sad, that langflow still doesnt support LiteLLM!

amit4422 avatar Jun 08 '25 20:06 amit4422

is lite llm supported? is there any way to configure vllm based open api base URL ?

numberonewastefellow avatar Jul 10 '25 20:07 numberonewastefellow

any update or workaround?

ngothiensinh avatar Nov 16 '25 02:11 ngothiensinh

Any update here folks?

gbrandao07 avatar Apr 22 '26 02:04 gbrandao07