Commit 1bd757e
committed
Fix: Use api.getModel() directly instead of cachedStreamingModel
Addresses review comment: cachedStreamingModel is set during streaming but
buildCleanConversationHistory is called before streaming starts. Using the
cached value could cause stale model info when switching models between requests.
Now directly uses this.api.getModel().info.preserveReasoning to ensure we
always check the current model's flag, not a potentially stale cached value.1 parent 219e73d commit 1bd757e
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3437 | 3437 | | |
3438 | 3438 | | |
3439 | 3439 | | |
3440 | | - | |
3441 | | - | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
3442 | 3443 | | |
3443 | 3444 | | |
3444 | 3445 | | |
| |||
0 commit comments