Python
Node.js
说明
- 自定义端点请使用兼容 OpenAI 的 Chat Completions 模式。
- LiveKit 专用于 Responses 的 OpenAI 工具不会自动转换为 Phaseo 服务器工具。
- 除非所选 LiveKit 接口支持该模态的自定义 OpenAI 兼容 URL,否则请分别配置语音转文本和文本转语音。
- 在处理生产语音流量前,请测试中断处理、工具调用和流式传输延迟。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在 LiveKit Agents 中使用 Phaseo 模型。
uv add "livekit-agents[openai]"
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",
),
)
pnpm add @livekit/agents @livekit/agents-plugin-openai
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",
}),
});