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: ntindle/replicate-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: replicate/replicate-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 17 commits
  • 17 files changed
  • 6 contributors

Commits on Oct 30, 2024

  1. Remove mention of data URLs from README (replicate#391)

    This commit incorporates the changes from replicate#386 as well as removing
    mention of the data URLs added in 86c5e14.
    aron authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    4fdd78f View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Fix a couple of bugs in the base64 file_encoding_strategy (replicate#398

    )
    
    This commit adds tests for the `file_encoding_strategy` argument for
    `replicate.run()` and fixes two bugs that surfaced:
    
    1. `replicate.run()` would convert the file provided into base64 encoded
    data but not a valid data URL. We now use the `base64_encode_file`
    function used for outputs.
    2. `replicate.async_run()` accepted but did not use the
    `file_encoding_strategy` flag at all. This is fixed, though it is worth
    noting that `base64_encode_file` is not optimized for async workflows
    and will block. This might be okay as the file sizes expected for data
    URL payloads should be very small.
    aron authored Nov 15, 2024
    Configuration menu
    Copy the full SHA
    07c8fbb View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. Configuration menu
    Copy the full SHA
    461ec70 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2025

  1. Configuration menu
    Copy the full SHA
    acf7a39 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2025

  1. Configuration menu
    Copy the full SHA
    74b41cc View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2025

  1. Configuration menu
    Copy the full SHA
    804fd1d View commit details
    Browse the repository at this point in the history
  2. bump patch to 1.0.5

    zeke committed Apr 25, 2025
    Configuration menu
    Copy the full SHA
    f5d53cd View commit details
    Browse the repository at this point in the history
  3. bump to 1.0.6

    zeke committed Apr 25, 2025
    Configuration menu
    Copy the full SHA
    9f8d753 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2025

  1. Support getting REPLICATE_API_TOKEN from cog context

    This commit introduces support for the cog context into the Replicate
    SDK. The `current_scope` helper now makes per-prediction context
    available via the `current_scope().context` dict.
    
    A cog model can then provide a REPLICATE_API_TOKEN on a per-prediction
    basis to be used by the model.
    
        def predict(prompt: str) -> str:
            replicate = Replicate()
            output = replicate.run("anthropic/claude-3.5-haiku", {input:
    {"prompt": "prompt"}})
            return output
    aron authored and philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    ab9982f View commit details
    Browse the repository at this point in the history
  2. Document alternative authentication

    aron authored and philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    52c373c View commit details
    Browse the repository at this point in the history
  3. Make scope lookup case insensitive

    aron authored and philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    302f5da View commit details
    Browse the repository at this point in the history
  4. Linting

    aron authored and philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    68551cf View commit details
    Browse the repository at this point in the history
  5. Update replicate/client.py

    Co-authored-by: Philip Potter <philip.g.potter@gmail.com>
    aron and philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    48acf51 View commit details
    Browse the repository at this point in the history
  6. format and lint

    philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    36c95a8 View commit details
    Browse the repository at this point in the history
  7. Release 1.0.7

    philandstuff committed May 27, 2025
    Configuration menu
    Copy the full SHA
    42ba2f7 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Switch to using uv for project tooling (replicate#437)

    This migrates the project from using `rye` to `uv`, both tools provided
    by astral.sh but the latter is deemed to be the successor:
    
    https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/
    
    The scripts should all work as before.
    aron authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    0110c2c View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2025

  1. docs: how to cut a beta release

    zeke committed Aug 26, 2025
    Configuration menu
    Copy the full SHA
    d2956ff View commit details
    Browse the repository at this point in the history
Loading