Commit 26d0503
committed
fix(fetch): use inclusive minimum/maximum instead of exclusive bounds in schema
The Fetch model used gt=0 and lt=1000000 Pydantic constraints on
max_length, which generates exclusiveMinimum/exclusiveMaximum in the
JSON Schema. Some LLM providers (e.g. Google Gemini 2.5) only support
OpenAPI 3.0 schema keywords and reject these with a 400 error.
Switch to ge=1 / le=999999 (identical semantics for integers) so Pydantic
emits the universally supported minimum/maximum keywords instead.
Fixes #1624
Made-with: Cursor1 parent f424458 commit 26d0503
2 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
16 | 35 | | |
17 | 36 | | |
18 | 37 | | |
| |||
0 commit comments