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

fix: conversation item create and delete return a Future #1085

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

longcw
Copy link
Collaborator

@longcw longcw commented Nov 14, 2024

No description provided.

@longcw longcw force-pushed the fix/conversation-item-create branch from 622047b to 3c35c37 Compare November 14, 2024 15:03
Copy link

changeset-bot bot commented Nov 14, 2024

🦋 Changeset detected

Latest commit: 3c35c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-plugins-openai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -541,7 +544,8 @@ def create(
message,
extra=self._sess.logging_extra(),
)
return
fut.set_result(False)
return fut
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's been like that before, but just thinking out loud, should we raise an Exception instead of logging a warning? Since the creation failed anyway

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think if we let the user of this method to decide the agent to keep running or be failed based on the value of the Future.

@davidzhao davidzhao merged commit d85080d into livekit:main Nov 15, 2024
4 checks passed
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants