Commit f540bbb
committed
fix(client): copy dict handler result before stamping defaults
_handle_chat's single-shot dict path did payload = result then
setdefault'd text='' and finish_reason='stop' onto the same dict. A
chat_handler that returns a class-attribute / cached response dict had
those defaults baked into its template on every call, surprising the
caller and bleeding state across invocations.1 parent 59f8aed commit f540bbb
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
0 commit comments