-
Notifications
You must be signed in to change notification settings - Fork 100
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
Different messages sent concurrently return the same response #74
Labels
enhancement
New feature or request
Comments
Hi, client = PoeApi(token)
def t1_send():
for chunk in client.send_message('a2', 'Nice to meet you. Write a 300 word essay about the moon'):
print(chunk['response'], end='', flush=True)
def t2_send():
for chunk in client.send_message('chinchilla', 'What day is it today? Write a 300 word essay about the sun'):
print(chunk['response'], end='', flush=True)
t1 = threading.Thread(target=t1_send)
t2 = threading.Thread(target=t2_send)
t1.start()
t2.start()
t1.join()
t2.join() |
Thanks for the new example. |
This is resolved in v1.5.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for the awesome library.
When testing concurrent connections with the following code (adapted from your example code), I keep getting the same responses from Poe, even when the messages and bots are different.
The above code would, for example, print "Today is October 22, 2023." twice.
I wonder if this is a problem with the library or is the way Poe works?
The text was updated successfully, but these errors were encountered: