gorilla-llm / gorilla-cli

LLMs for your CLI
https://gorilla.cs.berkeley.edu/
Apache License 2.0
1.22k stars 73 forks source link

Does gorilla expect me to login to git on my CLI? #9

Closed surya-narayanan closed 11 months ago

surya-narayanan commented 1 year ago

My input command was

gorilla 'i want to run this sentence through an LLM'

And the output is

Unable to generate userid: Command '['git', 'config', '--global', 'user.email']' returned non-zero exit status 1.
Please run 'go <command>' again. If the problem persists, please raise an issue:                   https://github.com/gorilla-llm/gorilla-cli/issues/new?title=Problem%20with%20generating%20userid%3A%20Command%20%27%5B%27git%27%2C%20%27config%27%2C%20%27--global%27%2C%20%27user.email%27%5D%27%20returned%20non-zero%20exit%20status%201.&body=Unable%20to%20generate%20userid%3A%20Command%20%27%5B%27git%27%2C%20%27config%27%2C%20%27--global%27%2C%20%27user.email%27%5D%27%20returned%20non-zero%20exit%20status%201.
Unable to write userid file: local variable 'user_id' referenced before assignment
Try deleting USERID_FILE and run 'go <command>' again. If the problem persists, please raise an issue:                   https://github.com/gorilla-llm/gorilla-cli/issues/new?title=Problem%20with%20userid%20file&body=Unable%20to%20write%20userid%20file%3A%20local%20variable%20%27user_id%27%20referenced%20before%20assignment

I tried logging in using git config user.email and git config user.name to no avail.

ShishirPatil commented 12 months ago

Hey @surya-narayanan Thanks for trying out Gorilla-cli. It's not critical, but yeah with a github login it's easier to capture a unique id for rate limiting. Once you have logged in to github - which you can check with git config --global user.email to see if it returns a valid email, can you try the following:

rm ~/.gorilla-cli-* && pip uninstall gorilla-cli
pip install gorilla-cli

Let me know if this doesn't work! I'll keep this open for a few days to see if you run into anything!