landing-ai / vision-agent

Vision agent
Apache License 2.0
1.31k stars 132 forks source link

fix: streaming back assistant response before parse code action #276

Closed wuyiqunLu closed 1 month ago

wuyiqunLu commented 1 month ago

The generated code could be failed to parse and the error message were streaming back to UI, however, if that happened, the latest assistant response were not streamed because the while loop was break, so moved the code to stream back assistant response first before parse code action.

Confirmed with running examples in UI and make sure the UI behaves the same.

image