From acf7a3956257b862cf0633fba7a0d00189aeb546 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Thu, 13 Feb 2025 14:28:34 -0800 Subject: [PATCH 1/5] fix syntax error in readme snippet --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff11997..8367552 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ This is helpful when you want the ID of the prediction separate from its output. ```python prediction = replicate.predictions.create( - model="meta/meta-llama-3-70b-instruct" + model="meta/meta-llama-3-70b-instruct", input={"prompt": "Please write a haiku about llamas."}, stream=True, ) From 74b41cce3d746a2a5068fc3e45f4ee285dfb0df0 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 25 Mar 2025 22:41:54 -0400 Subject: [PATCH 2/5] Update automatic formatting (#417) --- tests/test_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 1345a62..2c585b1 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -95,9 +95,9 @@ def test_custom_headers_are_applied(): def mock_send(request): assert "User-Agent" in request.headers, "Custom header not found in request" - assert ( - request.headers["User-Agent"] == "my-custom-user-agent/1.0" - ), "Custom header value is incorrect" + assert request.headers["User-Agent"] == "my-custom-user-agent/1.0", ( + "Custom header value is incorrect" + ) return httpx.Response(401, json={}) mock_send_wrapper = mock.Mock(side_effect=mock_send) From 804fd1dcaf0780c2156015eb6a2353007d0e67e9 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Fri, 25 Apr 2025 10:49:19 -0400 Subject: [PATCH 3/5] fix(package): include py.typed marker file --- replicate/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 replicate/py.typed diff --git a/replicate/py.typed b/replicate/py.typed new file mode 100644 index 0000000..e69de29 From f5d53cd3930d45bfbde1e9a7308bfc12620de01d Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Fri, 25 Apr 2025 09:03:55 -0700 Subject: [PATCH 4/5] bump patch to 1.0.5 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 975f7d9..409d1e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "replicate" -version = "1.0.4" +version = "1.0.5" description = "Python client for Replicate" readme = "README.md" license = { file = "LICENSE" } From 9f8d7539628ba4e037f6e295bbdc6532c2d9d91b Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Fri, 25 Apr 2025 09:06:27 -0700 Subject: [PATCH 5/5] bump to 1.0.6 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 409d1e5..4e2a0d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "replicate" -version = "1.0.5" +version = "1.0.6" description = "Python client for Replicate" readme = "README.md" license = { file = "LICENSE" }