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

Components rendered by tools will be immediately overwritten by text, causing the execution of generated UI to fail. #1499

Open
1057105012 opened this issue May 6, 2024 · 0 comments
Labels

Comments

@1057105012
Copy link

Description

I thought, maybe this is a difficult problem to solve? Nevertheless, it is inappropriate to expose this ambiguous or unintuitive behavior to users. Sleep should not be needed, or it should be hidden, or it is a bug and some branch judgments are missing.

Code example

generate: async ({ symbol, numOfMonths }) => { console.log("call func", symbol, numOfMonths) // Comment sleep, component exception, no comment, normal rendering after 1 second // await sleep(1000); history.done((messages: ServerMessage[]) => [ ...messages, { role: 'assistant', content: Showing stock information for ${symbol} } ]) return <RenderN/>; }

this is bad

Additional context

1057105012@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants