BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
4.21k stars 278 forks source link

Fixed empty response issue #98

Closed BurnOutDev closed 1 year ago

BurnOutDev commented 1 year ago

Fixes Issue #94: Chat Gives Empty Response

Root Cause The parser was expecting chunks to contain triple backticks (`) as a marker to start appending content. However, the chunks were being split into smaller pieces that only contained a pair of backticks () and a backtick followed by a newline character (`\n). This caused the parser to never encounter the expected triple backticks, resulting in empty responses.

Screenshot 2023-09-21 at 03 41 52 Screenshot 2023-09-21 at 03 44 13
steve8708 commented 1 year ago

amazing, thanks @BurnOutDev !