Skip to content

Commit a38f687

Browse files
committed
Re-record test cassettes
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent e7b6cb3 commit a38f687

9 files changed

+2963
-1341
lines changed

tests/cassettes/predictions-cancel.yaml

Lines changed: 385 additions & 105 deletions
Large diffs are not rendered by default.

tests/cassettes/predictions-create.yaml

Lines changed: 320 additions & 91 deletions
Large diffs are not rendered by default.

tests/cassettes/predictions-get.yaml

Lines changed: 113 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,139 @@
11
interactions:
22
- request:
3-
body: null
3+
body: ''
44
headers:
5-
Accept:
5+
accept:
66
- '*/*'
7-
Accept-Encoding:
7+
accept-encoding:
88
- gzip, deflate
9+
connection:
10+
- keep-alive
11+
host:
12+
- api.replicate.com
13+
user-agent:
14+
- replicate-python/0.11.0
15+
method: GET
16+
uri: https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu
17+
response:
18+
content: "{\"id\":\"vgcm4plb7tgzlyznry5d5jkgvu\",\"version\":\"a00d0b7dcbb9c3fbb34ba87d2d5b46c56969c84a628bf778a7fdaec30b1b99c5\",\"input\":{\"height\":512,\"prompt\":\"a
19+
studio photo of a rainbow colored corgi\",\"seed\":42069,\"width\":512},\"logs\":\"Using
20+
seed: 42069\\nPrompt: a studio photo of a rainbow colored corgi\\ntxt2img mode\\n
21+
\ 0%| | 0/50 [00:00\\u003c?, ?it/s]\\n 4%|\u258D | 2/50 [00:00\\u003c00:02,
22+
16.47it/s]\\n 8%|\u258A | 4/50 [00:00\\u003c00:02, 16.39it/s]\\n 12%|\u2588\u258F
23+
\ | 6/50 [00:00\\u003c00:02, 16.60it/s]\\n 16%|\u2588\u258C | 8/50
24+
[00:00\\u003c00:02, 16.53it/s]\\n 20%|\u2588\u2588 | 10/50 [00:00\\u003c00:02,
25+
16.76it/s]\\n 24%|\u2588\u2588\u258D | 12/50 [00:00\\u003c00:02, 16.93it/s]\\n
26+
28%|\u2588\u2588\u258A | 14/50 [00:00\\u003c00:02, 17.04it/s]\\n 32%|\u2588\u2588\u2588\u258F
27+
\ | 16/50 [00:00\\u003c00:01, 17.10it/s]\\n 36%|\u2588\u2588\u2588\u258C
28+
\ | 18/50 [00:01\\u003c00:01, 17.12it/s]\\n 40%|\u2588\u2588\u2588\u2588
29+
\ | 20/50 [00:01\\u003c00:01, 17.15it/s]\\n 44%|\u2588\u2588\u2588\u2588\u258D
30+
\ | 22/50 [00:01\\u003c00:01, 17.16it/s]\\n 48%|\u2588\u2588\u2588\u2588\u258A
31+
\ | 24/50 [00:01\\u003c00:01, 17.17it/s]\\n 52%|\u2588\u2588\u2588\u2588\u2588\u258F
32+
\ | 26/50 [00:01\\u003c00:01, 17.20it/s]\\n 56%|\u2588\u2588\u2588\u2588\u2588\u258C
33+
\ | 28/50 [00:01\\u003c00:01, 17.21it/s]\\n 60%|\u2588\u2588\u2588\u2588\u2588\u2588
34+
\ | 30/50 [00:01\\u003c00:01, 17.19it/s]\\n 64%|\u2588\u2588\u2588\u2588\u2588\u2588\u258D
35+
\ | 32/50 [00:01\\u003c00:01, 17.18it/s]\\n 68%|\u2588\u2588\u2588\u2588\u2588\u2588\u258A
36+
\ | 34/50 [00:01\\u003c00:00, 17.18it/s]\\n 72%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F
37+
\ | 36/50 [00:02\\u003c00:00, 17.20it/s]\\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C
38+
\ | 38/50 [00:02\\u003c00:00, 17.21it/s]\\n 80%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
39+
\ | 40/50 [00:02\\u003c00:00, 17.19it/s]\\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258D
40+
| 42/50 [00:02\\u003c00:00, 17.19it/s]\\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258A
41+
| 44/50 [00:02\\u003c00:00, 17.19it/s]\\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F|
42+
46/50 [00:02\\u003c00:00, 17.20it/s]\\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C|
43+
48/50 [00:02\\u003c00:00, 17.22it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
44+
50/50 [00:02\\u003c00:00, 17.19it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
45+
50/50 [00:02\\u003c00:00, 17.09it/s]\\n\",\"output\":[\"https://replicate.delivery/pbxt/9inf36wjsEWuQ6XTf84iezPftv9QZdePfGySnU5tUai3BOrWE/out-0.png\"],\"error\":null,\"status\":\"succeeded\",\"created_at\":\"2023-08-16T18:57:08.360785Z\",\"started_at\":\"2023-08-16T18:57:08.366092Z\",\"completed_at\":\"2023-08-16T18:57:12.17042Z\",\"metrics\":{\"predict_time\":3.804328},\"urls\":{\"cancel\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu/cancel\",\"get\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu\"}}\n"
46+
headers:
47+
CF-Cache-Status:
48+
- DYNAMIC
49+
CF-RAY:
50+
- 7f7be8b17b47f8d1-SEA
951
Connection:
1052
- keep-alive
11-
User-Agent:
53+
Content-Encoding:
54+
- gzip
55+
Content-Type:
56+
- application/json
57+
Date:
58+
- Wed, 16 Aug 2023 18:58:28 GMT
59+
NEL:
60+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
61+
Report-To:
62+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=UuflCrg7N4NAE6re4SQXd4aIWksjHl5BGKMFC3j9Rh9twIDDFOZzdAiU%2F%2FcWNM%2FofzDCdfSG628ZUoRTySoOZY04dhbVtbL4FCJ6YCsfEfkB%2B282Tfjs0VSoavvJmvBcSN%2B0"}],"group":"cf-nel","max_age":604800}'
63+
Server:
64+
- cloudflare
65+
Strict-Transport-Security:
66+
- max-age=15552000
67+
Transfer-Encoding:
68+
- chunked
69+
ratelimit-remaining:
70+
- '59999'
71+
ratelimit-reset:
72+
- '1'
73+
via:
74+
- 1.1 google
75+
http_version: HTTP/1.1
76+
status_code: 200
77+
- request:
78+
body: ''
79+
headers:
80+
accept:
81+
- '*/*'
82+
accept-encoding:
83+
- gzip, deflate
84+
connection:
85+
- keep-alive
86+
host:
87+
- api.replicate.com
88+
user-agent:
1289
- replicate-python/0.11.0
1390
method: GET
1491
uri: https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu
1592
response:
16-
body:
17-
string: "{\"completed_at\":\"2023-08-16T18:57:12.170420Z\",\"created_at\":\"2023-08-16T18:57:08.394251Z\",\"error\":null,\"id\":\"vgcm4plb7tgzlyznry5d5jkgvu\",\"input\":{\"seed\":42069,\"width\":512,\"height\":512,\"prompt\":\"a
18-
studio photo of a rainbow colored corgi\"},\"logs\":\"Using seed: 42069\\nPrompt:
19-
a studio photo of a rainbow colored corgi\\ntxt2img mode\\n 0%| |
20-
0/50 [00:00<?, ?it/s]\\n 4%|\u258D | 2/50 [00:00<00:02, 16.47it/s]\\n
21-
\ 8%|\u258A | 4/50 [00:00<00:02, 16.39it/s]\\n 12%|\u2588\u258F |
22-
6/50 [00:00<00:02, 16.60it/s]\\n 16%|\u2588\u258C | 8/50 [00:00<00:02,
23-
16.53it/s]\\n 20%|\u2588\u2588 | 10/50 [00:00<00:02, 16.76it/s]\\n
24-
24%|\u2588\u2588\u258D | 12/50 [00:00<00:02, 16.93it/s]\\n 28%|\u2588\u2588\u258A
25-
\ | 14/50 [00:00<00:02, 17.04it/s]\\n 32%|\u2588\u2588\u2588\u258F |
26-
16/50 [00:00<00:01, 17.10it/s]\\n 36%|\u2588\u2588\u2588\u258C | 18/50
27-
[00:01<00:01, 17.12it/s]\\n 40%|\u2588\u2588\u2588\u2588 | 20/50 [00:01<00:01,
28-
17.15it/s]\\n 44%|\u2588\u2588\u2588\u2588\u258D | 22/50 [00:01<00:01,
29-
17.16it/s]\\n 48%|\u2588\u2588\u2588\u2588\u258A | 24/50 [00:01<00:01,
30-
17.17it/s]\\n 52%|\u2588\u2588\u2588\u2588\u2588\u258F | 26/50 [00:01<00:01,
31-
17.20it/s]\\n 56%|\u2588\u2588\u2588\u2588\u2588\u258C | 28/50 [00:01<00:01,
32-
17.21it/s]\\n 60%|\u2588\u2588\u2588\u2588\u2588\u2588 | 30/50 [00:01<00:01,
33-
17.19it/s]\\n 64%|\u2588\u2588\u2588\u2588\u2588\u2588\u258D | 32/50 [00:01<00:01,
34-
17.18it/s]\\n 68%|\u2588\u2588\u2588\u2588\u2588\u2588\u258A | 34/50 [00:01<00:00,
35-
17.18it/s]\\n 72%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F | 36/50
36-
[00:02<00:00, 17.20it/s]\\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C
37-
\ | 38/50 [00:02<00:00, 17.21it/s]\\n 80%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
38-
\ | 40/50 [00:02<00:00, 17.19it/s]\\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258D
39-
| 42/50 [00:02<00:00, 17.19it/s]\\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258A
40-
| 44/50 [00:02<00:00, 17.19it/s]\\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F|
41-
46/50 [00:02<00:00, 17.20it/s]\\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C|
42-
48/50 [00:02<00:00, 17.22it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
43-
50/50 [00:02<00:00, 17.19it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
44-
50/50 [00:02<00:00, 17.09it/s]\",\"metrics\":{\"predict_time\":3.804328},\"output\":[\"https://replicate.delivery/pbxt/9inf36wjsEWuQ6XTf84iezPftv9QZdePfGySnU5tUai3BOrWE/out-0.png\"],\"started_at\":\"2023-08-16T18:57:08.366092Z\",\"status\":\"succeeded\",\"urls\":{\"get\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu\",\"cancel\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu/cancel\"},\"version\":\"a00d0b7dcbb9c3fbb34ba87d2d5b46c56969c84a628bf778a7fdaec30b1b99c5\",\"webhook_completed\":null}"
93+
content: "{\"completed_at\":\"2023-08-16T18:57:12.170420Z\",\"created_at\":\"2023-08-16T18:57:08.394251Z\",\"error\":null,\"id\":\"vgcm4plb7tgzlyznry5d5jkgvu\",\"input\":{\"seed\":42069,\"width\":512,\"height\":512,\"prompt\":\"a
94+
studio photo of a rainbow colored corgi\"},\"logs\":\"Using seed: 42069\\nPrompt:
95+
a studio photo of a rainbow colored corgi\\ntxt2img mode\\n 0%| |
96+
0/50 [00:00<?, ?it/s]\\n 4%|\u258D | 2/50 [00:00<00:02, 16.47it/s]\\n
97+
\ 8%|\u258A | 4/50 [00:00<00:02, 16.39it/s]\\n 12%|\u2588\u258F |
98+
6/50 [00:00<00:02, 16.60it/s]\\n 16%|\u2588\u258C | 8/50 [00:00<00:02,
99+
16.53it/s]\\n 20%|\u2588\u2588 | 10/50 [00:00<00:02, 16.76it/s]\\n 24%|\u2588\u2588\u258D
100+
\ | 12/50 [00:00<00:02, 16.93it/s]\\n 28%|\u2588\u2588\u258A | 14/50
101+
[00:00<00:02, 17.04it/s]\\n 32%|\u2588\u2588\u2588\u258F | 16/50 [00:00<00:01,
102+
17.10it/s]\\n 36%|\u2588\u2588\u2588\u258C | 18/50 [00:01<00:01, 17.12it/s]\\n
103+
40%|\u2588\u2588\u2588\u2588 | 20/50 [00:01<00:01, 17.15it/s]\\n 44%|\u2588\u2588\u2588\u2588\u258D
104+
\ | 22/50 [00:01<00:01, 17.16it/s]\\n 48%|\u2588\u2588\u2588\u2588\u258A
105+
\ | 24/50 [00:01<00:01, 17.17it/s]\\n 52%|\u2588\u2588\u2588\u2588\u2588\u258F
106+
\ | 26/50 [00:01<00:01, 17.20it/s]\\n 56%|\u2588\u2588\u2588\u2588\u2588\u258C
107+
\ | 28/50 [00:01<00:01, 17.21it/s]\\n 60%|\u2588\u2588\u2588\u2588\u2588\u2588
108+
\ | 30/50 [00:01<00:01, 17.19it/s]\\n 64%|\u2588\u2588\u2588\u2588\u2588\u2588\u258D
109+
\ | 32/50 [00:01<00:01, 17.18it/s]\\n 68%|\u2588\u2588\u2588\u2588\u2588\u2588\u258A
110+
\ | 34/50 [00:01<00:00, 17.18it/s]\\n 72%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F
111+
\ | 36/50 [00:02<00:00, 17.20it/s]\\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C
112+
\ | 38/50 [00:02<00:00, 17.21it/s]\\n 80%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
113+
\ | 40/50 [00:02<00:00, 17.19it/s]\\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258D
114+
| 42/50 [00:02<00:00, 17.19it/s]\\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258A
115+
| 44/50 [00:02<00:00, 17.19it/s]\\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258F|
116+
46/50 [00:02<00:00, 17.20it/s]\\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C|
117+
48/50 [00:02<00:00, 17.22it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
118+
50/50 [00:02<00:00, 17.19it/s]\\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588|
119+
50/50 [00:02<00:00, 17.09it/s]\",\"metrics\":{\"predict_time\":3.804328},\"output\":[\"https://replicate.delivery/pbxt/9inf36wjsEWuQ6XTf84iezPftv9QZdePfGySnU5tUai3BOrWE/out-0.png\"],\"started_at\":\"2023-08-16T18:57:08.366092Z\",\"status\":\"succeeded\",\"urls\":{\"get\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu\",\"cancel\":\"https://api.replicate.com/v1/predictions/vgcm4plb7tgzlyznry5d5jkgvu/cancel\"},\"version\":\"a00d0b7dcbb9c3fbb34ba87d2d5b46c56969c84a628bf778a7fdaec30b1b99c5\",\"webhook_completed\":null}"
45120
headers:
46121
CF-Cache-Status:
47122
- DYNAMIC
48123
CF-RAY:
49-
- 7fdbf069d941c711-SEA
124+
- 7fdc4189de7dec40-SEA
50125
Connection:
51126
- keep-alive
52127
Content-Encoding:
53128
- gzip
54129
Content-Type:
55130
- application/json
56131
Date:
57-
- Mon, 28 Aug 2023 10:40:58 GMT
132+
- Mon, 28 Aug 2023 11:36:20 GMT
58133
NEL:
59134
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
60135
Report-To:
61-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=qLv7bEFpFpwzz3yjljKE%2BaB99Pi3VLwPuMQBF3rd0AIC9A5zN8Cb7vG2jSmFjYLaMDLI09illVQB509ZuhjLH%2BaT78oh%2BPVNwo6JCDO7D%2FLC3VKlsSI8F7ozdeVfGaSBN5%2Fr"}],"group":"cf-nel","max_age":604800}'
136+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=HmSmJbXoAg%2FkFrYq0SaazhPmQ15spnJbmkglu73Db46HoR0%2F%2FGGftVRKkKIpIMvp2zkrDSSk%2Bhpy5hFySayGknnd%2F13KKmY2f5bpGbFFbbBbbv5U8h4xiGAM0%2FfJZdsDLkeh"}],"group":"cf-nel","max_age":604800}'
62137
Server:
63138
- cloudflare
64139
Strict-Transport-Security:
@@ -73,7 +148,6 @@ interactions:
73148
- Cookie, origin
74149
via:
75150
- 1.1 vegur, 1.1 google
76-
status:
77-
code: 200
78-
message: OK
151+
http_version: HTTP/1.1
152+
status_code: 200
79153
version: 1

0 commit comments

Comments
 (0)