fix: add cache_tokens/reasoning_tokens to Message constructors in useSessionStream
This commit is contained in:
@@ -40,6 +40,8 @@ function applyFrame(state: State, frame: WsFrame): State {
|
||||
tokens_used: null,
|
||||
ctx_used: null,
|
||||
ctx_max: null,
|
||||
cache_tokens: null,
|
||||
reasoning_tokens: null,
|
||||
model: null,
|
||||
started_at: null,
|
||||
finished_at: null,
|
||||
@@ -106,6 +108,8 @@ function applyFrame(state: State, frame: WsFrame): State {
|
||||
tokens_used: null,
|
||||
ctx_used: null,
|
||||
ctx_max: null,
|
||||
cache_tokens: null,
|
||||
reasoning_tokens: null,
|
||||
model: null,
|
||||
started_at: null,
|
||||
finished_at: null,
|
||||
|
||||
Reference in New Issue
Block a user