@@ -57,7 +57,7 @@ export interface Batch {
57
57
/**
58
58
* The Unix timestamp (in seconds) for when the batch was created.
59
59
*/
60
- created_at : string ;
60
+ created_at : number ;
61
61
62
62
/**
63
63
* The OpenAI API endpoint used by the batch.
@@ -90,17 +90,17 @@ export interface Batch {
90
90
/**
91
91
* The Unix timestamp (in seconds) for when the batch was cancelled.
92
92
*/
93
- cancelled_at ?: string ;
93
+ cancelled_at ?: number ;
94
94
95
95
/**
96
96
* The Unix timestamp (in seconds) for when the batch started cancelling.
97
97
*/
98
- cancelling_at ?: string ;
98
+ cancelling_at ?: number ;
99
99
100
100
/**
101
101
* The Unix timestamp (in seconds) for when the batch was completed.
102
102
*/
103
- completed_at ?: string ;
103
+ completed_at ?: number ;
104
104
105
105
/**
106
106
* The ID of the file containing the outputs of requests with errors.
@@ -112,27 +112,27 @@ export interface Batch {
112
112
/**
113
113
* The Unix timestamp (in seconds) for when the batch expired.
114
114
*/
115
- expired_at ?: string ;
115
+ expired_at ?: number ;
116
116
117
117
/**
118
118
* The Unix timestamp (in seconds) for when the batch will expire.
119
119
*/
120
- expires_at ?: string ;
120
+ expires_at ?: number ;
121
121
122
122
/**
123
123
* The Unix timestamp (in seconds) for when the batch failed.
124
124
*/
125
- failed_at ?: string ;
125
+ failed_at ?: number ;
126
126
127
127
/**
128
128
* The Unix timestamp (in seconds) for when the batch started finalizing.
129
129
*/
130
- finalizing_at ?: string ;
130
+ finalizing_at ?: number ;
131
131
132
132
/**
133
133
* The Unix timestamp (in seconds) for when the batch started processing.
134
134
*/
135
- in_progress_at ?: string ;
135
+ in_progress_at ?: number ;
136
136
137
137
/**
138
138
* Set of 16 key-value pairs that can be attached to an object. This can be useful
@@ -225,8 +225,9 @@ export interface BatchCreateParams {
225
225
* See [upload file](https://platform.openai.com/docs/api-reference/files/create)
226
226
* for how to upload a file.
227
227
*
228
- * Your input file must be formatted as a JSONL file, and must be uploaded with the
229
- * purpose `batch`.
228
+ * Your input file must be formatted as a
229
+ * [JSONL file](https://platform.openai.com/docs/api-reference/batch/requestInput),
230
+ * and must be uploaded with the purpose `batch`.
230
231
*/
231
232
input_file_id : string ;
232
233
0 commit comments