mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-02 01:51:14 +03:00
Propogate streaming token stats to chat calls
This commit is contained in:
parent
475f87d40b
commit
ee20bd9930
@ -1411,6 +1411,11 @@ When a user refers to a specific object they have seen or describe with identify
|
|||||||
)
|
)
|
||||||
+ b"\n"
|
+ b"\n"
|
||||||
)
|
)
|
||||||
|
elif kind == "stats":
|
||||||
|
yield (
|
||||||
|
json.dumps({"type": "stats", **value}).encode("utf-8")
|
||||||
|
+ b"\n"
|
||||||
|
)
|
||||||
elif kind == "message":
|
elif kind == "message":
|
||||||
msg = value
|
msg = value
|
||||||
if msg.get("finish_reason") == "error":
|
if msg.get("finish_reason") == "error":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user