Difference between useChat and useAssistant? #920
-
Hey all -- curious what the difference is between useAssistant and useChat? Is there a reason to prefer one over the other? |
Beta Was this translation helpful? Give feedback.
Answered by
jeremyphilemon
Jun 12, 2024
Replies: 2 comments
-
I also want to know. It seems that there is no difference from the code and description on the official website. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Both the hooks are similar in their use, but are different in how they work. Your preference will vary based on the following differences.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jeremyphilemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both the hooks are similar in their use, but are different in how they work. Your preference will vary based on the following differences.
useChat
chat.completion
like endpoint, seestreamText
useAssistant
assistants.create
endpoint