Commit d32c683
committed
fix: skip JSON fallback when web_search tool is present
When web_search tools are used, falling back to JSON mode causes
an error because OpenAI doesn't support JSON mode with web search.
This fix detects web_search tools in lm_kwargs and skips the JSON
fallback, raising the original error instead for better debugging.
Fixes #89581 parent 8a7bcfd commit d32c683
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments