-
Notifications
You must be signed in to change notification settings - Fork 259
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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: 9f8d753
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: replicate/replicate-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 42ba2f7
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 7 commits
- 6 files changed
- 3 contributors
Commits on May 27, 2025
-
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 outputConfiguration menu - View commit details
-
Copy full SHA for ab9982f - Browse repository at this point
Copy the full SHA ab9982fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52c373c - Browse repository at this point
Copy the full SHA 52c373cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 302f5da - Browse repository at this point
Copy the full SHA 302f5daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68551cf - Browse repository at this point
Copy the full SHA 68551cfView commit details -
Co-authored-by: Philip Potter <philip.g.potter@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 48acf51 - Browse repository at this point
Copy the full SHA 48acf51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36c95a8 - Browse repository at this point
Copy the full SHA 36c95a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42ba2f7 - Browse repository at this point
Copy the full SHA 42ba2f7View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 9f8d753...42ba2f7