Update latency message to display seconds instead of milliseconds

This commit is contained in:
Joakim Hellsén 2025-09-26 17:38:57 +02:00
commit 2dc200d2f7

View file

@ -233,7 +233,7 @@ def get_latency(ctx: RunContext[BotDependencies]) -> str:
A string with the current latency information.
"""
latency: float | Literal[0] = ctx.deps.client.latency if ctx.deps.client else 0
return f"Current latency: {latency} ms"
return f"Current latency: {latency} seconds"
@agent.instructions