numerous-whale-53652
07/23/2025, 3:12 PMtall-airline-16756
07/23/2025, 3:12 PMtall-airline-16756
07/23/2025, 3:13 PMbase_url and api_key to connect. This method works for many providers that follow the OpenAI API standard.
• Custom LLM Node: Implement a custom LLM node by extending the base LLM interface and providing the required methods for streaming and tool calls. This allows you to integrate any provider or custom logic.
• Ollama for Local Models: Use Ollama to run open-source or fine-tuned models locally and integrate them with LiveKit.
• Contribute a Plugin: If you want official support for a new provider, you can contribute a plugin following LiveKit's contribution guidelines.
For most cases, using the OpenAI-compatible API approach is the simplest and requires minimal setup. Once your LLM instance is configured, you can use it in an AgentSession just like any supported provider.
Sources: livekit-plugins/livekit-plugins-anthropic/README.md | Large language model (LLM) integrations | LiveKit Docs | External data and RAG | LiveKit Docs | Working with plugins | LiveKit Docs