Commit 5e7cc23
fix: only register inputModel when we create it
Only dispose the input model when ChatInputPart created it. If someone
else created the model (getModel returns an existing one), we should
not take ownership of its lifecycle.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 447fa3f commit 5e7cc23
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2421 | 2421 | | |
2422 | 2422 | | |
2423 | 2423 | | |
| 2424 | + | |
2424 | 2425 | | |
2425 | | - | |
2426 | 2426 | | |
2427 | 2427 | | |
2428 | 2428 | | |
| |||
0 commit comments