replicate/cog v0.19.0
replicate/cog
Captured source
source ↗published Apr 27, 2026seen Jun 26captured 11hhttp 200method plain
v0.19.0
Repository: replicate/cog
Tag: v0.19.0
Published: 2026-04-27T17:05:56Z
Prerelease: no
Release notes:
New features
- `cog doctor` command. Diagnose common Cog setup issues, check configuration, and verify that everything is working correctly. Run
cog doctorto validate your environment. (#2923)
Improvements
- Static schema generation is now the default. Cog now generates prediction schemas statically from your predictor's type annotations rather than importing and inspecting the Python code at build time. This makes builds faster and more reliable. Use
COG_LEGACY_SCHEMA=1to opt out if you encounter issues. (#2950) - Test harness improvements. The Cog integration test harness now runs tests in parallel and provides better error reporting. (#2944)
Bug fixes
- Separate-weights builds with r8.im image names work correctly. Schema validation no longer fails when building with separate weights and using
r8.im/...image names. (#2954) - Static schema generation handles more edge cases. Fixed issues with certain type annotation patterns in static schema generation. (#2948)
- `Secret = Input(default=None)` is treated as optional. Secret inputs with
Nonedefaults are now correctly identified as optional in the generated schema. (#2949)