Commit dcd5c2c
authored
fix: allow optional temperature and/or top_p (#276)
This change ensures that the payload only includes temperature and top_p if the corresponding model arguments are provided. This gives users the option to use Sonnet with both parameters, and leaving top_p empty for Opus.1 parent b6cde06 commit dcd5c2c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments