mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 01:32:22 +03:00
fix(changelog): remove YAML frontmatter from 9571 fragment
The changelog fragment format requires the first non-empty line to be
a markdown bullet ("- "). YAML frontmatter was the first non-empty
line, causing the integrity check to fail.
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
---
|
||||
kind: feature
|
||||
ref: "#9571"
|
||||
---
|
||||
- **feat(plugins):** add onStreamComplete built-in event exposing streaming usage and timing (#9571)
|
||||
|
||||
feat(plugins): add onStreamComplete built-in event exposing streaming usage and timing (#9571)
|
||||
Adds a new `onStreamComplete` plugin event that fires after an SSE stream is fully
|
||||
consumed, carrying usage token counts and timing metrics (latency, TTFT). Built-in
|
||||
events now include `onStreamComplete` as a fire-and-forget lifecycle hook.
|
||||
|
||||
Adds a new `onStreamComplete` plugin event that fires after an SSE stream is fully
|
||||
consumed, carrying usage token counts and timing metrics (latency, TTFT). Built-in
|
||||
events now include "onStreamComplete" as a fire-and-forget lifecycle hook.
|
||||
Payload: `status`, `usage` (prompt_tokens, completion_tokens, reasoning_tokens,
|
||||
cache_read_input_tokens, cache_creation_input_tokens), `timing` (latencyMs, ttft),
|
||||
`model`, `provider`, `errorCode`.
|
||||
|
||||
The payload shape:
|
||||
|
||||
- `status` — HTTP status of the stream
|
||||
- `usage.prompt_tokens`, `.completion_tokens`, `.reasoning_tokens`,
|
||||
`.cache_read_input_tokens`, `.cache_creation_input_tokens`
|
||||
- `timing.latencyMs`, `.ttft`
|
||||
- `model`, `provider`, `errorCode`
|
||||
|
||||
Non-breaking — existing `onResponse` hooks with `{ streamed: true }` remain unchanged.
|
||||
Non-breaking — existing `onResponse` hooks with `{ streamed: true }` remain unchanged.
|
||||
|
||||
Reference in New Issue
Block a user