did something go down? locally I get apikey errors...
# cloud
b
did something go down? locally I get apikey errors (nothings changed) and when I call the agent that's deployed on livekit cloud there are no rings. All was working fine yesterday. no code changes on my end
👀 1
r
I don't believe anything to be down. Let me check
That looks fine.
So this is for inference that you are getting API key errors or something else? Do you have some specific log messages you are seeing?
b
APIKey errors: Here's one test:
@pytest.mark.asyncio
async def test_greeter_offers_assistance() -> None:
"""Evaluation of the greeter agent's friendly greeting."""
instructions = _get_instructions()
userdata = UserData()
async with (
_llm() as llm,
AgentSession(llm=llm, userdata=userdata) as session,
):
await session.start(Greeter(instructions["greeter"]))
# Run an agent turn following the user's greeting
result = await session.run(user_input="Hello")
# Evaluate the agent's response for friendliness
await (
>               result.expect.next_event()
.is_message(role="assistant")
.judge(
llm,
intent="""
Greets the user in a friendly manner and offers assistance with restaurant services like dining/reservations or ordering/takeaway.
The response should:
- Be welcoming and friendly
- Mention or imply the restaurant's services (e.g., reservations/booking/dine in, takeaway/pickup/delivery/order)
- Ask how they can help
""",
)
)
E           AssertionError: Expected another event, but none left.
E           Context around failure:
WARNING  livekit.agents:llm.py:208 failed to generate LLM completion, retrying in 0.1s
Traceback (most recent call last):
File "/Users/matthew/AIAgents/livekit/hello-world-restaurant-agent/.venv/lib/python3.13/site-packages/livekit/agents/llm/llm.py", line 190, in _main_task
return await self._run()
^^^^^^^^^^^^^^^^^
File "/Users/matthew/AIAgents/livekit/hello-world-restaurant-agent/.venv/lib/python3.13/site-packages/livekit/agents/inference/llm.py", line 341, in _run
raise APIStatusError(
...<5 lines>...
) from None
livekit.agents._exceptions.APIStatusError: invalid API key for domain agent-gateway.livekit.cloud (status_code=401, request_id=None, body=invalid API key for domain agent-gateway.livekit.cloud, retryable=True)
Local and cloud both stopped working. I tried changing my apikeys and that didn't work either
r
Thanks. I am checking with the infra team to make sure
👍 1
b
I am also not able to place calls. I get "Process memory usage is high". @refined-appointment-81829 can you please help us.
f
@breezy-knife-25008 We addressed the issue, can you try running your agent?
b
Yep working now. Thanks
f
no problem, dude. apologies for the hassle.
b
all good, thanks for the quick turnaround 🙏
🙇 1