You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We created a deployment of demucs (https://replicate.com/cjwbw/demucs) on Replicate a few weeks ago. We were on version 0.22.0 of the package, and the following code worked fine:
#258 added fields to the `Deployment` model provided by the new
`deployments.{get,list,update}` endpoints. However, those were
implemented against a version of the OpenAPI specification that
disagreed with the actual API responses. Specifically, the
`min_instances` and `max_instances` properties were listed as
subproperties of a `scaling` object rather than direct fields. The
result — as reported in #270 — was Pydantic validation errors like this:
```
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for Deployment
current_release -> configuration -> scaling
field required (type=value_error.missing)"
```
This PR updates the `Deployment` model to correctly locate
`min_instances` and `max_instances` as properties of
`current_release.configuration`.
Signed-off-by: Mattt Zmuda <[email protected]>
Hi @alxiang. You're correct, this was a regression. I apologize for any inconvenience this caused. I just merged a fix for this in #271, which is now available in 0.25.1. Please let me know if you still see this or run into any other issues.
We created a deployment of demucs (https://replicate.com/cjwbw/demucs) on Replicate a few weeks ago. We were on version 0.22.0 of the package, and the following code worked fine:
replicate.deployments.get("pathstone-labs/lifelike-demucs")
However, when we upload to version 0.25.0 of the package, we see the following error:
1 validation error for Deployment current_release -> configuration -> scaling field required (type=value_error.missing)
So we are currently sticking to v0.22.0. Was there some kind of backwards incompatibility introduced in the recent versions of this package? Thanks.
The text was updated successfully, but these errors were encountered: