Commit 6ac8a3e
committed
feat: expose to_strict_json_schema as public API (#2093)
Expose the internal to_strict_json_schema function as a public API
so users can generate strict JSON schemas from Pydantic models
without relying on private module paths.
Changes:
- Add to_strict_json_schema export to openai.lib.__init__
- Add to_strict_json_schema export to openai.__init__
- Add test for public API accessibility
Closes #20931 parent 94c88b8 commit 6ac8a3e
3 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments