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

Cannot use streamed responses with blocking tools #900

Open
cescoffier opened this issue Sep 17, 2024 · 1 comment
Open

Cannot use streamed responses with blocking tools #900

cescoffier opened this issue Sep 17, 2024 · 1 comment

Comments

@cescoffier
Copy link
Collaborator

Let's imagine an AI Service returning a Multi<String>. If the generation of the response uses tools, these tools cannot be blocking (basically, cannot use Panache or Hibernate).

I tried:

  • @RunOnVirtualThread (the magic bullet(tm))
  • @Blocking
  • .runSubscriptionOn(...)

None of them works.

I think we need to find a proper way to handle that use case.

@geoand
Copy link
Collaborator

geoand commented Sep 17, 2024

Right, this is similar to #837

I think we need to find a proper way to handle that use case.

Agreed, but I don't see it being done before Devox

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

No branches or pull requests

2 participants