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

Using StreamUI #130

Closed
miurla opened this issue May 10, 2024 · 4 comments
Closed

Using StreamUI #130

miurla opened this issue May 10, 2024 · 4 comments

Comments

@miurla
Copy link
Owner

miurla commented May 10, 2024

Try to simplify the code by applying it to Researcher

https://sdk.vercel.ai/docs/reference/ai-sdk-rsc/stream-ui

@Nil2000
Copy link
Contributor

Nil2000 commented May 10, 2024

Hi @miurla Do you mean to use streamUI instead of streamText like this?
image

@miurla
Copy link
Owner Author

miurla commented May 10, 2024

Yes. When using render, the streamed text couldn't be displayed smoothly. If it's not a problem, it would be better to use streamUI.

If it's usable, since a writer has been added, we need to branch with USE_SPECIFIC_API_FOR_WRITER.

@miurla
Copy link
Owner Author

miurla commented May 13, 2024

I'm working on this now.

@miurla
Copy link
Owner Author

miurla commented May 14, 2024

I tried streamUI, and while it's convenient for making single tool calls, it wasn't suitable for replacing the researcher, so no replacement was made. Instead, refactoring was carried out. #148

@miurla miurla closed this as completed May 14, 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

No branches or pull requests

2 participants