Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to use my assistant; one run creates more than one run #1727

Open
1 task done
dehhganii opened this issue Sep 19, 2024 · 0 comments
Open
1 task done

trying to use my assistant; one run creates more than one run #1727

dehhganii opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dehhganii
Copy link

dehhganii commented Sep 19, 2024

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

with creating a thread:
thread = client.beta.threads.create()

with creating the message:
message = client.beta.threads.messages.create( thread_id=thread.id, role="role", content="message" )

and run using this command:
run = client.beta.threads.runs.create_and_poll( thread_id=thread.id, assistant_id='assistant_id' )

Sometimes, when I see the chat in here https://platform.openai.com/threads/, one run causes multiple responses from the assistant. So, when I grab the latest message, it is not based on the initial message I sent.

I put all these three steps in one loop, of length around 100, and I saw this behavior in some of the threads.

To Reproduce

image

Code snippets

No response

OS

linux

Python version

3.10

Library version

openai v1.0.1

@dehhganii dehhganii added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants