Skip to content

Commit c528ee4

Browse files
committed
Delete version field from JSON response in trainnings.get
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent 80d84b2 commit c528ee4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

replicate/training.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def get(self, id: str) -> Training:
4545
f"/v1/trainings/{id}",
4646
)
4747
obj = resp.json()
48+
# HACK: resolve this? make it lazy somehow?
49+
del obj["version"]
4850
return self.prepare_model(obj)
4951

5052
def create( # type: ignore

0 commit comments

Comments
 (0)