Commit 499a64f
PR #385 made top_p optional and defaulted it to None in LLMConfig,
but openai.py still unconditionally includes top_p in the request
params dict. This sends "top_p": null to providers like AWS Bedrock
that don't strip null values, causing 400 errors.
Only include top_p in params when it is explicitly set.
Fixes #414
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 38207bb commit 499a64f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
0 commit comments