Skip to content

Commit

Permalink
Expose threadId in useAssistant (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Nov 20, 2023
1 parent 785a245 commit 6aec2d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-meals-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

Expose threadId in useAssistant
1 change: 1 addition & 0 deletions packages/core/react/use-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export function experimental_useAssistant({

return {
messages,
threadId,
input,
handleInputChange,
submitMessage,
Expand Down

0 comments on commit 6aec2d2

Please sign in to comment.