railsjazz / ask_chatgpt

AI-Powered Assistant Gem right in your Rails console. Full power of ChatGPT in Rails
https://www.railsjazz.com/
MIT License
253 stars 13 forks source link

Feature request: Dialog-style interaction #17

Open anon987654321 opened 1 year ago

anon987654321 commented 1 year ago

Ie. instead of ask_chatgpt -f app/models/user.rb -q "find a bug in this Rails model"

$ ask_chatgpt
Loading chatgpt-4-browser... done

<chatgpt> What can I do for you today?
<jazzmatazz> Find and fix all bugs in app/models/user.rb and related tests
stu54796 commented 6 months ago

Create a table to store the chats. and another to store the messages, that way you can carry on with conversations... otherwise store them in memory inside an array or something. Seems out of the scope of the gem.