Update latency message to display seconds instead of milliseconds
This commit is contained in:
parent
8eb18fc958
commit
2dc200d2f7
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue