Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: replicate/cog
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: replicate/cog
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: run-tokens-publish
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 11 commits
  • 12 files changed
  • 2 contributors

Commits on Feb 7, 2025

  1. Support run tokens

    "Run tokens" are used to run downstream Replicate models from within a model.
    
    They can be retrieved using scope:
    
    ```python
    from cog import current_scope
    
    token = current_scope()._run_token
    ```
    
    Co-authored-by: Nick Stenning <nick@whiteink.com>
    andreasjansson and nickstenning committed Feb 7, 2025
    Configuration menu
    Copy the full SHA
    41aae54 View commit details
    Browse the repository at this point in the history
  2. Add include function

    andreasjansson authored and nickstenning committed Feb 7, 2025
    Configuration menu
    Copy the full SHA
    daa6528 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21e1a67 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    08b551b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b6b66c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17f4723 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2a260f6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d548a47 View commit details
    Browse the repository at this point in the history
  9. For now we still support Py 3.8, 3.9

    Use `Optional[T]` rather than `T | None` and use types from `typing`
    rather than subscripting native types.
    nickstenning committed Feb 7, 2025
    Configuration menu
    Copy the full SHA
    a5aca68 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    da78249 View commit details
    Browse the repository at this point in the history
  11. Publish to GCS

    nickstenning committed Feb 7, 2025
    Configuration menu
    Copy the full SHA
    5cd1f77 View commit details
    Browse the repository at this point in the history
Loading