Skip to content

feat(metrics): broadcast llm tps + ttfs + agent_false_interruption#6373

Draft
Bobronium wants to merge 1 commit into
mainfrom
arseny/additional-metrics
Draft

feat(metrics): broadcast llm tps + ttfs + agent_false_interruption#6373
Bobronium wants to merge 1 commit into
mainfrom
arseny/additional-metrics

Conversation

@Bobronium

@Bobronium Bobronium commented Jul 9, 2026

Copy link
Copy Markdown
Member

Comment on lines +224 to +232
async def _set_time_first_sentence() -> None:
try:
async for _ in sentence_stream:
data.ttfs = time.perf_counter() - start_time
return
except Exception:
logger.exception("failed to time first sentence (llm_node_ttfs)")

ttfs_task = asyncio.create_task(_set_time_first_sentence())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tokenizer configuration may actually be different than the one being really used. We should try to use the real one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants