cog
2969c9cc - Pass REPLICATE_API_TOKEN to model via context (#2365)

Commit
214 days ago
Pass REPLICATE_API_TOKEN to model via context (#2365) Now when running `cog predict` any `REPLICATE_API_TOKEN` in the current environment will be passed into the model via the `context` field on the prediction/training request. This will then be available on the current scope and picked up by the Replicate Python client (as of v1.0.7).
Author
Parents
Loading