> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LiveKit

> LiveKit Agents में Phaseo models उपयोग करें।

LiveKit Agents अपने OpenAI plugin से किसी भी OpenAI-संगत chat endpoint को call कर सकता है। Phaseo model IDs और routing के लिए इस plugin को Phaseo पर point करें।

## Python

```bash theme={null}
uv add "livekit-agents[openai]"
```

```python theme={null}
import os
from livekit.agents import AgentSession
from livekit.plugins import openai

session = AgentSession(
    llm=openai.LLM(
        model="openai/gpt-5-nano",
        api_key=os.environ["PHASEO_API_KEY"],
        base_url="https://api.phaseo.app/v1",
    ),
)
```

## Node.js

```bash theme={null}
pnpm add @livekit/agents @livekit/agents-plugin-openai
```

```ts theme={null}
import { voice } from "@livekit/agents";
import * as openai from "@livekit/agents-plugin-openai";

const session = new voice.AgentSession({
	llm: new openai.LLM({
		model: "openai/gpt-5-nano",
		apiKey: process.env.PHASEO_API_KEY,
		baseURL: "https://api.phaseo.app/v1",
	}),
});
```

## नोट्स

* Custom endpoints के लिए OpenAI-संगत Chat Completions mode उपयोग करें।
* LiveKit के Responses-विशेष OpenAI tools अपने-आप Phaseo server tools नहीं बनते।
* चुना हुआ LiveKit interface उस modality के लिए custom OpenAI-संगत URL support न करे, तो speech-to-text और text-to-speech अलग configure करें।
* उत्पादन में वॉइस ट्रैफ़िक शुरू करने से पहले, बीच में रोकने के व्यवहार, टूल कॉल और स्ट्रीमिंग की विलंबता जाँचें।

## संबंधित विषय

* [OpenAI SDK](./openai-sdk.mdx)
* [स्ट्रीमिंग](../streaming.mdx)
* [टूल कॉलिंग](../tool-calling.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.