(self, file_id)
| 83 | return outputs |
| 84 | |
| 85 | def batch_run(self, file_id): |
| 86 | response = self.client.batches.create( |
| 87 | input_file_id=file_id, |
| 88 | endpoint="/v1/chat/completions", |
| 89 | completion_window="24h" |
| 90 | ) |
| 91 | print(response) |
| 92 | return response |
| 93 | |
| 94 | def batch_status(self, batch_id): |
| 95 | response = self.client.batches.retrieve(batch_id) |