Commit 132d978
fix: guard temperature against NaN when undefined
Move temperature out of the ChatOpenAIFields initializer and apply it
conditionally, matching the pattern used by maxTokens, topP,
frequencyPenalty and presencePenalty. This prevents parseFloat from
returning NaN when the temperature input is undefined or empty.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7d6345d commit 132d978
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 | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments