Commit 7d06286
authored
Fix Pydantic validation errors for Training responses (#90)
* Relax Training version type constraint to be Optional
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
* Delete version field from JSON response in trainnings.get
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
* Remove version field from trainings.create response
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
---------
Signed-off-by: Mattt Zmuda <mattt@replicate.com>1 parent 298e2ab commit 7d06286
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
0 commit comments