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

How to use ASSISTANTS and Threads to get response。 #563

Open
496672097 opened this issue Nov 11, 2023 · 2 comments
Open

How to use ASSISTANTS and Threads to get response。 #563

496672097 opened this issue Nov 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@496672097
Copy link

The code provided outlines the structures for the assistant and the thread. However, how should I use these two constructs to obtain the returned results? Alternatively, you can just tell me how to use the thread to get the results returned by the assistant. Many thanks.

What I understand so far: 1) I need to create an assistant (which can also be done via OpenAI's web interface). 2) While creating a thread, I need to add a message to it that includes the role and context. How do I run the thread to get the results? I would greatly appreciate guidance from any expert. Thank you very much, I am quite new to this.

Additional context
mabe i need a example simple。

image

@496672097 496672097 added the enhancement New feature or request label Nov 11, 2023
@raulsh
Copy link

raulsh commented Nov 11, 2023

#546 resolve this issue

@ahobsonsayers
Copy link

@496672097 I have answered this question in #632 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants