Given we are tier 5, and we for sure didn’t exceed any hard limit. I think this is a bug. We started to experience this error from 9th of June, and today 11 of June, it is still send me the error back.
BadRequestError Traceback (most recent call last)
in
1 file_id = upload_batch_file(client, request_json)
2 # file_id = ‘file-JVOAMfShShnJWUhhAPj4’
----> 3 batch_job_id = create_batch_job(client, file_id)
in create_batch_job(client, file_id, description)
16 endpoint=“/v1/chat/completions”,
17 completion_window=“24h”,
—> 18 metadata={“description”: description}
19 )
20 print(f"Batch job created with ID: {batch_job.id}")
~/opt/anaconda3/lib/python3.7/site-packages/openai/resources/batches.py in create(self, completion_window, endpoint, input_file_id, metadata, extra_headers, extra_query, extra_body, timeout)
97 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
98 ),
—> 99 cast_to=Batch,
100 )
101
~/opt/anaconda3/lib/python3.7/site-packages/openai/_base_client.py in post(self, path, cast_to, body, options, files, stream, stream_cls)
1238 method=“post”, url=path, json_data=body, files=to_httpx_files(files), **options
1239 )
→ 1240 return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
…
→ 1020 raise self._make_status_error_from_response(err.response) from None
1021
1022 return self._process_response(
BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘Billing hard limit has been reached’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘billing_hard_limit_reached’}}