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
It appears somewhat recently that creating new and updating existing inference endpoints no longer create/update non-secret environment variables on the endpoint.
The documentation suggests setting "env" in the custom_image parameter. However when fetching the raw data from the HF endpoint, the "env" vars are directly under the model parameter, not under image.custom which is where the documentation suggests it should be.
There is a workaround to set the environment variable as a secret, which works just fine. Perhaps another workaround would be to just use requests and set the payload accordingly to match what's expected.
I'm not so sure this is an issue with this library as it is an issue in the API itself. Something appears to have changed on the inference endpoint API.
Describe the bug
It appears somewhat recently that creating new and updating existing inference endpoints no longer create/update non-secret environment variables on the endpoint.
The documentation suggests setting "env" in the
custom_image
parameter. However when fetching the raw data from the HF endpoint, the "env" vars are directly under themodel
parameter, not underimage.custom
which is where the documentation suggests it should be.There is a workaround to set the environment variable as a
secret
, which works just fine. Perhaps another workaround would be to just use requests and set the payload accordingly to match what's expected.I'm not so sure this is an issue with this library as it is an issue in the API itself. Something appears to have changed on the inference endpoint API.
Examples
This does not appear to work:
The workaround:
When pulling the raw endpoint, we can see
env
is now undermodel
and notimage.custom
:Reproduction
Logs
System info
The text was updated successfully, but these errors were encountered: