Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ fastapi>=0.100.0
uvicorn>=0.20.0
requests>=2.31.0
python-dotenv>=1.0.0
agora-agents>=2.0.0
agora-agents>=2.3.0
# Enables httpx to route through a SOCKS proxy (e.g. all_proxy=socks5://...)
socksio>=1.0.0
5 changes: 1 addition & 4 deletions server/src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ async def start(
if user_uid <= 0:
raise ValueError("user_uid is required and cannot be empty")

name = f"agent_{channel_name}_{agent_uid}_{int(time.time())}"

# Default managed path: DeepgramSTT + OpenAI + MiniMaxTTS.
llm = OpenAI(
model="gpt-4o-mini",
Expand Down Expand Up @@ -113,7 +111,7 @@ async def start(
parameters["output_audio_codec"] = output_audio_codec.strip()

agora_agent = AgoraAgent(
name=name,
client=self.client,
instructions=ADA_PROMPT,
greeting=self.greeting,
failure_message="Please wait a moment.",
Expand Down Expand Up @@ -148,7 +146,6 @@ async def start(
)

session = agora_agent.create_async_session(
client=self.client,
channel=channel_name,
agent_uid=str(agent_uid),
remote_uids=[str(user_uid)],
Expand Down
Loading