Skip to content

Commit 69f344c

Browse files
committed
Re-record batch tests
1 parent a7f40d9 commit 69f344c

6 files changed

+212
-216
lines changed

tests/SessionRecords/BatchTests/CanRehydrateBatchOperation(False).json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,53 @@
66
"RequestHeaders": {
77
"Accept": "application/json",
88
"Authorization": "Sanitized",
9-
"Content-Length": "659",
10-
"Content-Type": "multipart/form-data; boundary=\"gAmiSrhc65BG6KcHEhVjbuV5zTonsC__zDrx1FxRAon9ZjTn4yhejLcEfpMIIFirptWP9z\"",
11-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
9+
"Content-Length": "660",
10+
"Content-Type": "multipart/form-data; boundary=\"VdHogfBtMIGdWFtSYwyAATn6gopNHVpn76W4smhRQcLIvOtEbXj1BVwvVvnQA6iX1JCx8o\"",
11+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
1212
},
1313
"RequestBody": [
14-
"--gAmiSrhc65BG6KcHEhVjbuV5zTonsC__zDrx1FxRAon9ZjTn4yhejLcEfpMIIFirptWP9z\r\n",
14+
"--VdHogfBtMIGdWFtSYwyAATn6gopNHVpn76W4smhRQcLIvOtEbXj1BVwvVvnQA6iX1JCx8o\r\n",
1515
"Content-Disposition: form-data; name=file; filename=test-batch-file; filename*=utf-8''test-batch-file\r\n",
1616
"\r\n",
17-
"b64:eyJjdXN0b21faWQiOiAicmVxdWVzdC0xIiwgIm1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICIvdjEvY2hhdC9jb21wbGV0aW9ucyIsICJib2R5IjogeyJtb2RlbCI6ICJncHQtNG8tbWluaSIsICJtZXNzYWdlcyI6IFt7InJvbGUiOiAic3lzdGVtIiwgImNvbnRlbnQiOiAiWW91IGFyZSBhIGhlbHBmdWwgYXNzaXN0YW50LiJ9LCB7InJvbGUiOiAidXNlciIsICJjb250ZW50IjogIldoYXQgaXMgMisyPyJ9XX19Cg==",
17+
"b64:eyJjdXN0b21faWQiOiAicmVxdWVzdC0xIiwgIm1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICIvdjEvY2hhdC9jb21wbGV0aW9ucyIsICJib2R5IjogeyJtb2RlbCI6ICJncHQtNG8tbWluaSIsICJtZXNzYWdlcyI6IFt7InJvbGUiOiAic3lzdGVtIiwgImNvbnRlbnQiOiAiWW91IGFyZSBhIGhlbHBmdWwgYXNzaXN0YW50LiJ9LCB7InJvbGUiOiAidXNlciIsICJjb250ZW50IjogIldoYXQgaXMgMisyPyJ9XX19DQo=",
1818
"\r\n",
19-
"--gAmiSrhc65BG6KcHEhVjbuV5zTonsC__zDrx1FxRAon9ZjTn4yhejLcEfpMIIFirptWP9z\r\n",
19+
"--VdHogfBtMIGdWFtSYwyAATn6gopNHVpn76W4smhRQcLIvOtEbXj1BVwvVvnQA6iX1JCx8o\r\n",
2020
"Content-Type: text/plain; charset=utf-8\r\n",
2121
"Content-Disposition: form-data; name=purpose\r\n",
2222
"\r\n",
2323
"batch",
2424
"\r\n",
25-
"--gAmiSrhc65BG6KcHEhVjbuV5zTonsC__zDrx1FxRAon9ZjTn4yhejLcEfpMIIFirptWP9z--\r\n"
25+
"--VdHogfBtMIGdWFtSYwyAATn6gopNHVpn76W4smhRQcLIvOtEbXj1BVwvVvnQA6iX1JCx8o--\r\n"
2626
],
2727
"StatusCode": 200,
2828
"ResponseHeaders": {
2929
"Access-Control-Allow-Origin": "*",
3030
"Alt-Svc": "h3=\":443\"",
3131
"cf-cache-status": "DYNAMIC",
32-
"CF-RAY": "995487ac9c896bdd-DFW",
32+
"CF-RAY": "99717bb70a310933-SEA",
3333
"Connection": "keep-alive",
3434
"Content-Length": "240",
3535
"Content-Type": "application/json",
36-
"Date": "Mon, 27 Oct 2025 19:16:49 GMT",
36+
"Date": "Fri, 31 Oct 2025 07:36:46 GMT",
3737
"openai-organization": "Sanitized",
38-
"openai-processing-ms": "315",
38+
"openai-processing-ms": "359",
3939
"openai-project": "Sanitized",
4040
"openai-version": "2020-10-01",
4141
"Server": "cloudflare",
4242
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
4343
"X-Content-Type-Options": "nosniff",
44-
"x-envoy-upstream-service-time": "327",
44+
"x-envoy-upstream-service-time": "373",
4545
"x-openai-proxy-wasm": "v0.1",
4646
"X-Request-ID": "Sanitized"
4747
},
4848
"ResponseBody": {
4949
"object": "file",
50-
"id": "file-NUKUTbm5g2HzBc6eztYyHh",
50+
"id": "file-VexCdh2zzKqH8ZcpoqRXPD",
5151
"purpose": "batch",
5252
"filename": "test-batch-file",
53-
"bytes": 232,
54-
"created_at": 1761592608,
55-
"expires_at": 1764184608,
53+
"bytes": 233,
54+
"created_at": 1761896206,
55+
"expires_at": 1764488206,
5656
"status": "processed",
5757
"status_details": null
5858
}
@@ -65,10 +65,10 @@
6565
"Authorization": "Sanitized",
6666
"Content-Length": "160",
6767
"Content-Type": "application/json",
68-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
68+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
6969
},
7070
"RequestBody": {
71-
"input_file_id": "file-NUKUTbm5g2HzBc6eztYyHh",
71+
"input_file_id": "file-VexCdh2zzKqH8ZcpoqRXPD",
7272
"endpoint": "/v1/chat/completions",
7373
"completion_window": "24h",
7474
"metadata": {
@@ -79,36 +79,36 @@
7979
"ResponseHeaders": {
8080
"Alt-Svc": "h3=\":443\"",
8181
"cf-cache-status": "DYNAMIC",
82-
"CF-RAY": "995487af1f376bdd-DFW",
82+
"CF-RAY": "99717bbabc620933-SEA",
8383
"Connection": "keep-alive",
8484
"Content-Length": "886",
8585
"Content-Type": "application/json",
86-
"Date": "Mon, 27 Oct 2025 19:16:49 GMT",
86+
"Date": "Fri, 31 Oct 2025 07:36:47 GMT",
8787
"openai-organization": "Sanitized",
88-
"openai-processing-ms": "218",
88+
"openai-processing-ms": "592",
8989
"openai-project": "Sanitized",
9090
"openai-version": "2020-10-01",
9191
"Server": "cloudflare",
9292
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
9393
"X-Content-Type-Options": "nosniff",
94-
"x-envoy-upstream-service-time": "222",
94+
"x-envoy-upstream-service-time": "595",
9595
"x-openai-proxy-wasm": "v0.1",
9696
"X-Request-ID": "Sanitized"
9797
},
9898
"ResponseBody": {
99-
"id": "batch_68ffc52151448190afaff0bd92164896",
99+
"id": "batch_6904670e9638819082caf7bd85838f00",
100100
"object": "batch",
101101
"endpoint": "/v1/chat/completions",
102102
"model": null,
103103
"errors": null,
104-
"input_file_id": "file-NUKUTbm5g2HzBc6eztYyHh",
104+
"input_file_id": "file-VexCdh2zzKqH8ZcpoqRXPD",
105105
"completion_window": "24h",
106106
"status": "validating",
107107
"output_file_id": null,
108108
"error_file_id": null,
109-
"created_at": 1761592609,
109+
"created_at": 1761896206,
110110
"in_progress_at": null,
111-
"expires_at": 1761679009,
111+
"expires_at": 1761982606,
112112
"finalizing_at": null,
113113
"completed_at": null,
114114
"failed_at": null,
@@ -137,48 +137,48 @@
137137
}
138138
},
139139
{
140-
"RequestUri": "https://api.openai.com/v1/batches/batch_68ffc52151448190afaff0bd92164896",
140+
"RequestUri": "https://api.openai.com/v1/batches/batch_6904670e9638819082caf7bd85838f00",
141141
"RequestMethod": "GET",
142142
"RequestHeaders": {
143143
"Accept": "application/json",
144144
"Authorization": "Sanitized",
145-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
145+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
146146
},
147147
"RequestBody": null,
148148
"StatusCode": 200,
149149
"ResponseHeaders": {
150150
"Alt-Svc": "h3=\":443\"",
151151
"cf-cache-status": "DYNAMIC",
152-
"CF-RAY": "995487b1999e6bdd-DFW",
152+
"CF-RAY": "99717bbf3f340933-SEA",
153153
"Connection": "keep-alive",
154154
"Content-Length": "886",
155155
"Content-Type": "application/json",
156-
"Date": "Mon, 27 Oct 2025 19:16:49 GMT",
156+
"Date": "Fri, 31 Oct 2025 07:36:47 GMT",
157157
"openai-organization": "Sanitized",
158-
"openai-processing-ms": "28",
158+
"openai-processing-ms": "82",
159159
"openai-project": "Sanitized",
160160
"openai-version": "2020-10-01",
161161
"Server": "cloudflare",
162162
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
163163
"X-Content-Type-Options": "nosniff",
164-
"x-envoy-upstream-service-time": "31",
164+
"x-envoy-upstream-service-time": "91",
165165
"x-openai-proxy-wasm": "v0.1",
166166
"X-Request-ID": "Sanitized"
167167
},
168168
"ResponseBody": {
169-
"id": "batch_68ffc52151448190afaff0bd92164896",
169+
"id": "batch_6904670e9638819082caf7bd85838f00",
170170
"object": "batch",
171171
"endpoint": "/v1/chat/completions",
172172
"model": null,
173173
"errors": null,
174-
"input_file_id": "file-NUKUTbm5g2HzBc6eztYyHh",
174+
"input_file_id": "file-VexCdh2zzKqH8ZcpoqRXPD",
175175
"completion_window": "24h",
176176
"status": "validating",
177177
"output_file_id": null,
178178
"error_file_id": null,
179-
"created_at": 1761592609,
179+
"created_at": 1761896206,
180180
"in_progress_at": null,
181-
"expires_at": 1761679009,
181+
"expires_at": 1761982606,
182182
"finalizing_at": null,
183183
"completed_at": null,
184184
"failed_at": null,

tests/SessionRecords/BatchTests/CanRehydrateBatchOperation(False)Async.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,53 @@
66
"RequestHeaders": {
77
"Accept": "application/json",
88
"Authorization": "Sanitized",
9-
"Content-Length": "659",
10-
"Content-Type": "multipart/form-data; boundary=\"RhbbuOT94eT_myXnsOW23p2HbuuGUmcFj5xgucO5CW5K3XauNqVtOznJMP=2u__B4q7nQR\"",
11-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
9+
"Content-Length": "660",
10+
"Content-Type": "multipart/form-data; boundary=\"xXbNj9vNPuAvELQvuC9diiXvIjzcaf3vJZfPxCqM_Dev=AXZVaHdkggA64zvHL5208yDFj\"",
11+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
1212
},
1313
"RequestBody": [
14-
"--RhbbuOT94eT_myXnsOW23p2HbuuGUmcFj5xgucO5CW5K3XauNqVtOznJMP=2u__B4q7nQR\r\n",
14+
"--xXbNj9vNPuAvELQvuC9diiXvIjzcaf3vJZfPxCqM_Dev=AXZVaHdkggA64zvHL5208yDFj\r\n",
1515
"Content-Disposition: form-data; name=file; filename=test-batch-file; filename*=utf-8''test-batch-file\r\n",
1616
"\r\n",
17-
"b64:eyJjdXN0b21faWQiOiAicmVxdWVzdC0xIiwgIm1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICIvdjEvY2hhdC9jb21wbGV0aW9ucyIsICJib2R5IjogeyJtb2RlbCI6ICJncHQtNG8tbWluaSIsICJtZXNzYWdlcyI6IFt7InJvbGUiOiAic3lzdGVtIiwgImNvbnRlbnQiOiAiWW91IGFyZSBhIGhlbHBmdWwgYXNzaXN0YW50LiJ9LCB7InJvbGUiOiAidXNlciIsICJjb250ZW50IjogIldoYXQgaXMgMisyPyJ9XX19Cg==",
17+
"b64:eyJjdXN0b21faWQiOiAicmVxdWVzdC0xIiwgIm1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICIvdjEvY2hhdC9jb21wbGV0aW9ucyIsICJib2R5IjogeyJtb2RlbCI6ICJncHQtNG8tbWluaSIsICJtZXNzYWdlcyI6IFt7InJvbGUiOiAic3lzdGVtIiwgImNvbnRlbnQiOiAiWW91IGFyZSBhIGhlbHBmdWwgYXNzaXN0YW50LiJ9LCB7InJvbGUiOiAidXNlciIsICJjb250ZW50IjogIldoYXQgaXMgMisyPyJ9XX19DQo=",
1818
"\r\n",
19-
"--RhbbuOT94eT_myXnsOW23p2HbuuGUmcFj5xgucO5CW5K3XauNqVtOznJMP=2u__B4q7nQR\r\n",
19+
"--xXbNj9vNPuAvELQvuC9diiXvIjzcaf3vJZfPxCqM_Dev=AXZVaHdkggA64zvHL5208yDFj\r\n",
2020
"Content-Type: text/plain; charset=utf-8\r\n",
2121
"Content-Disposition: form-data; name=purpose\r\n",
2222
"\r\n",
2323
"batch",
2424
"\r\n",
25-
"--RhbbuOT94eT_myXnsOW23p2HbuuGUmcFj5xgucO5CW5K3XauNqVtOznJMP=2u__B4q7nQR--\r\n"
25+
"--xXbNj9vNPuAvELQvuC9diiXvIjzcaf3vJZfPxCqM_Dev=AXZVaHdkggA64zvHL5208yDFj--\r\n"
2626
],
2727
"StatusCode": 200,
2828
"ResponseHeaders": {
2929
"Access-Control-Allow-Origin": "*",
3030
"Alt-Svc": "h3=\":443\"",
3131
"cf-cache-status": "DYNAMIC",
32-
"CF-RAY": "995486ef1a4d473e-DFW",
32+
"CF-RAY": "99717c2339b30933-SEA",
3333
"Connection": "keep-alive",
3434
"Content-Length": "240",
3535
"Content-Type": "application/json",
36-
"Date": "Mon, 27 Oct 2025 19:16:18 GMT",
36+
"Date": "Fri, 31 Oct 2025 07:37:03 GMT",
3737
"openai-organization": "Sanitized",
38-
"openai-processing-ms": "401",
38+
"openai-processing-ms": "221",
3939
"openai-project": "Sanitized",
4040
"openai-version": "2020-10-01",
4141
"Server": "cloudflare",
4242
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
4343
"X-Content-Type-Options": "nosniff",
44-
"x-envoy-upstream-service-time": "415",
44+
"x-envoy-upstream-service-time": "228",
4545
"x-openai-proxy-wasm": "v0.1",
4646
"X-Request-ID": "Sanitized"
4747
},
4848
"ResponseBody": {
4949
"object": "file",
50-
"id": "file-USXeivEfatETkgCf5wDjCF",
50+
"id": "file-A3EjqwhTyocKxWrhkbJZ5v",
5151
"purpose": "batch",
5252
"filename": "test-batch-file",
53-
"bytes": 232,
54-
"created_at": 1761592578,
55-
"expires_at": 1764184578,
53+
"bytes": 233,
54+
"created_at": 1761896223,
55+
"expires_at": 1764488223,
5656
"status": "processed",
5757
"status_details": null
5858
}
@@ -65,10 +65,10 @@
6565
"Authorization": "Sanitized",
6666
"Content-Length": "160",
6767
"Content-Type": "application/json",
68-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
68+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
6969
},
7070
"RequestBody": {
71-
"input_file_id": "file-USXeivEfatETkgCf5wDjCF",
71+
"input_file_id": "file-A3EjqwhTyocKxWrhkbJZ5v",
7272
"endpoint": "/v1/chat/completions",
7373
"completion_window": "24h",
7474
"metadata": {
@@ -79,36 +79,36 @@
7979
"ResponseHeaders": {
8080
"Alt-Svc": "h3=\":443\"",
8181
"cf-cache-status": "DYNAMIC",
82-
"CF-RAY": "995486f25d5a473e-DFW",
82+
"CF-RAY": "99717c25ab420933-SEA",
8383
"Connection": "keep-alive",
8484
"Content-Length": "886",
8585
"Content-Type": "application/json",
86-
"Date": "Mon, 27 Oct 2025 19:16:19 GMT",
86+
"Date": "Fri, 31 Oct 2025 07:37:03 GMT",
8787
"openai-organization": "Sanitized",
88-
"openai-processing-ms": "778",
88+
"openai-processing-ms": "196",
8989
"openai-project": "Sanitized",
9090
"openai-version": "2020-10-01",
9191
"Server": "cloudflare",
9292
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
9393
"X-Content-Type-Options": "nosniff",
94-
"x-envoy-upstream-service-time": "781",
94+
"x-envoy-upstream-service-time": "200",
9595
"x-openai-proxy-wasm": "v0.1",
9696
"X-Request-ID": "Sanitized"
9797
},
9898
"ResponseBody": {
99-
"id": "batch_68ffc503138c8190a5feae51d273996d",
99+
"id": "batch_6904671fafe88190989d11a9aeefc7bb",
100100
"object": "batch",
101101
"endpoint": "/v1/chat/completions",
102102
"model": null,
103103
"errors": null,
104-
"input_file_id": "file-USXeivEfatETkgCf5wDjCF",
104+
"input_file_id": "file-A3EjqwhTyocKxWrhkbJZ5v",
105105
"completion_window": "24h",
106106
"status": "validating",
107107
"output_file_id": null,
108108
"error_file_id": null,
109-
"created_at": 1761592579,
109+
"created_at": 1761896223,
110110
"in_progress_at": null,
111-
"expires_at": 1761678979,
111+
"expires_at": 1761982623,
112112
"finalizing_at": null,
113113
"completed_at": null,
114114
"failed_at": null,
@@ -137,48 +137,48 @@
137137
}
138138
},
139139
{
140-
"RequestUri": "https://api.openai.com/v1/batches/batch_68ffc503138c8190a5feae51d273996d",
140+
"RequestUri": "https://api.openai.com/v1/batches/batch_6904671fafe88190989d11a9aeefc7bb",
141141
"RequestMethod": "GET",
142142
"RequestHeaders": {
143143
"Accept": "application/json",
144144
"Authorization": "Sanitized",
145-
"User-Agent": "OpenAI/2.5.0 (.NET 9.0.10; Darwin 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132)"
145+
"User-Agent": "OpenAI/2.6.0 (.NET 9.0.10; Microsoft Windows 10.0.26200)"
146146
},
147147
"RequestBody": null,
148148
"StatusCode": 200,
149149
"ResponseHeaders": {
150150
"Alt-Svc": "h3=\":443\"",
151151
"cf-cache-status": "DYNAMIC",
152-
"CF-RAY": "995486f82ae3473e-DFW",
152+
"CF-RAY": "99717c277c440933-SEA",
153153
"Connection": "keep-alive",
154154
"Content-Length": "886",
155155
"Content-Type": "application/json",
156-
"Date": "Mon, 27 Oct 2025 19:16:20 GMT",
156+
"Date": "Fri, 31 Oct 2025 07:37:04 GMT",
157157
"openai-organization": "Sanitized",
158-
"openai-processing-ms": "26",
158+
"openai-processing-ms": "27",
159159
"openai-project": "Sanitized",
160160
"openai-version": "2020-10-01",
161161
"Server": "cloudflare",
162162
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
163163
"X-Content-Type-Options": "nosniff",
164-
"x-envoy-upstream-service-time": "29",
164+
"x-envoy-upstream-service-time": "30",
165165
"x-openai-proxy-wasm": "v0.1",
166166
"X-Request-ID": "Sanitized"
167167
},
168168
"ResponseBody": {
169-
"id": "batch_68ffc503138c8190a5feae51d273996d",
169+
"id": "batch_6904671fafe88190989d11a9aeefc7bb",
170170
"object": "batch",
171171
"endpoint": "/v1/chat/completions",
172172
"model": null,
173173
"errors": null,
174-
"input_file_id": "file-USXeivEfatETkgCf5wDjCF",
174+
"input_file_id": "file-A3EjqwhTyocKxWrhkbJZ5v",
175175
"completion_window": "24h",
176176
"status": "validating",
177177
"output_file_id": null,
178178
"error_file_id": null,
179-
"created_at": 1761592579,
179+
"created_at": 1761896223,
180180
"in_progress_at": null,
181-
"expires_at": 1761678979,
181+
"expires_at": 1761982623,
182182
"finalizing_at": null,
183183
"completed_at": null,
184184
"failed_at": null,

0 commit comments

Comments
 (0)