You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
Describe the bug
def add_messages(self, room_id, prompt, file_ids: List[str] | NotGiven = NotGiven): thread = self.get_thread(room_id) message = self.client.beta.threads.messages.create( thread_id=thread.id, role="user", content=prompt, metadata={'room_id': room_id}, file_ids=file_ids, ) mlogger.info(f'[add_messages]room_id:{room_id} thread_id:{thread.id} message_id:{message.id}') return message
I've finished my test before. But I got this error these days. openai.BadRequestError: Error code: 400 - {'error': {'message': "Can't add messages to thread_jD1dj44APTovq48PCBZACOGV while a run run_KfVG8fSJg882VHYeewFQ2BHk is active.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
I'v make sure the thread was just created .
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
def add_messages(self, room_id, prompt, file_ids: List[str] | NotGiven = NotGiven): thread = self.get_thread(room_id) message = self.client.beta.threads.messages.create( thread_id=thread.id, role="user", content=prompt, metadata={'room_id': room_id}, file_ids=file_ids, ) mlogger.info(f'[add_messages]room_id:{room_id} thread_id:{thread.id} message_id:{message.id}') return message
I've finished my test before. But I got this error these days.
openai.BadRequestError: Error code: 400 - {'error': {'message': "Can't add messages to thread_jD1dj44APTovq48PCBZACOGV while a run run_KfVG8fSJg882VHYeewFQ2BHk is active.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
I'v make sure the thread was just created .
To Reproduce
Code snippets
OS
win11
Python version
Python 3.11.2
Library version
openai v1.6.1
The text was updated successfully, but these errors were encountered: