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/replicate-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.1
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: 1.0.2
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 16, 2024

  1. Configure read timeout based on wait parameter (#373)

    This fixes a bug in the new `wait` implementation where the default read
    timeout for the HTTP client is shorter than the timeout on the server.
    This results in the client erroring before the server has had the
    opportunity to respond with a partial prediction.
    
    This commit now provides a custom timeout for the `predictions.create`
    request based on the `wait` parameter provided. We add a 500ms buffer to
    the timeout to account for some discrepancy between server and client
    timings.
    
    I attempted to try and refactor the shared code between models,
    deployments & predictions but gave up. We now have a single function
    that creates the `headers` and `timeout` params and passes them in at
    the various call sites.
    aron authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    7cfd984 View commit details
    Browse the repository at this point in the history
  2. v1.0.2 (#376)

    aron authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    23bd903 View commit details
    Browse the repository at this point in the history
Loading