open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Feature/ruby support

Open bars0um opened this issue 1 year ago • 1 comments

Describe the changes you have made:

Added Ruby Language support

Reference any relevant issues (e.g. "Fixes #000"):

https://github.com/OpenInterpreter/open-interpreter/issues/1094

Pre-Submission Checklist (optional but appreciated):

  • [ n/a? ] I have included relevant documentation updates (stored in /docs)
  • [ x ] I have read docs/CONTRIBUTING.md
  • [ x] I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • [ x ] Tested on Linux

bars0um avatar Mar 21 '24 22:03 bars0um

Thanks for the pr @bars0um!

I'm not a ruby guy, so I was wondering if you could include a quick screencast showing how the changes work with Ruby?

MikeBirdTech avatar Mar 25 '24 21:03 MikeBirdTech

A screencast would be amazing! But also this doesn't appear to be a breaking change, just additive. If it doesn't work on some systems we can fix from there. Merged, great work @bars0um on totally understanding how to add new languages with no docs on that!

KillianLucas avatar Mar 28 '24 02:03 KillianLucas

Here's a brief clip of this change in action.

https://github.com/OpenInterpreter/open-interpreter/assets/39853587/2981b4d6-fb23-412b-8c3a-79c4bde42e63

This allows OI to create ruby code and execute it. Not sure what the use-case would be, in my case I'm trying to make it write ruby code into a file. So in a fork i have, I basically treat Ruby as a BaseLanguage instead and write the output to a file named according to a comment at the top of the file that I direct the language model to put at the top via the system instructions. The approach appears to be promising. I'm looking into how to get the code re-read and for the LLM to iterate a few times on it to improve...that's proving a bit challenging as it kinda goes off into an endless journey for the meaning of life, the universe and everything...falling miserably short of identifying the ultimate answer...that of course being 42

bars0um avatar Apr 01 '24 12:04 bars0um