Skip to content

Commit 69505ad

Browse files
committed
update
1 parent bd9fd59 commit 69505ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class Assistant(Agent):
2424
def __init__(self) -> None:
2525
super().__init__(
26-
instructions="""You are a helpful voice AI assistant.
26+
instructions="""You are a helpful voice AI assistant. The user is interacting with you via voice, even if you perceive the conversation as text.
2727
You eagerly assist users with their questions by providing information from your extensive knowledge.
2828
Your responses are concise, to the point, and without any complex formatting or punctuation including emojis, asterisks, or other symbols.
2929
You are curious, friendly, and have a sense of humor.""",
@@ -62,13 +62,13 @@ async def entrypoint(ctx: JobContext):
6262
session = AgentSession(
6363
# Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand
6464
# See all available models at https://docs.livekit.io/agents/models/stt/
65-
stt="assemblyai/universal-streaming",
65+
stt="assemblyai/universal-streaming:en",
6666
# A Large Language Model (LLM) is your agent's brain, processing user input and generating a response
6767
# See all available models at https://docs.livekit.io/agents/models/llm/
68-
llm="azure/gpt-4o-mini",
68+
llm="openai/gpt-4.1-mini",
6969
# Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear
7070
# See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/
71-
tts="cartesia/sonic-2:f786b574-daa5-4673-aa0c-cbe3e8534c02",
71+
tts="cartesia/sonic-2:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc",
7272
# VAD and turn detection are used to determine when the user is speaking and when the agent should respond
7373
# See more at https://docs.livekit.io/agents/build/turns
7474
turn_detection=MultilingualModel(),

tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def _llm() -> llm.LLM:
8-
return inference.LLM(model="azure/gpt-4o-mini")
8+
return inference.LLM(model="openai/gpt-4.1-mini")
99

1010

1111
@pytest.mark.asyncio

0 commit comments

Comments
 (0)