BuilderIO / ai-shell

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

Fixed empty response issue #98

Closed BurnOutDev closed 10 months ago

BurnOutDev commented 10 months 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 10 months ago

amazing, thanks @BurnOutDev !