Closed Irian-Adappty closed 1 year ago
@qihangnet this seems to have come from your update https://github.com/BuilderIO/ai-shell/pull/62 would you be able to take a look at this?
@steve8708 He said that this issue has been present since version 0.13, and it should not be caused by my PR.
the error message is cat: /etc/upstream-release: Is a directory
.
Is this an error command generated by AI-Shell after executing the prompt?
@Irian-Adappty Can you show me your prompt?
Sure @qihangnet here's a video of the process and how it gives error: https://contecnika-my.sharepoint.com/:v:/g/personal/irian_caigo_es/EU1juhHdlB1BugdA3iTy0hAB5TRO_mNWaf9pgVwP8ONa2Q?e=IDzBxM
@Irian-Adappty I have found the cause: referencing package @nexssp/os in PR #49 . The method for determining the Linux system distribution in this line of code has an issue. This line of code should be:
return execSync('cat /etc/os-release').toString().trim()
I have submitted a PR for @nexssp/os
: https://github.com/nexssp/os/pull/6.
After it is merged and released, I will update the package version of ai-shell to fix this bug.
Additionally, a friendly reminder: @Irian-Adappty please be mindful of protecting your OpenAI API KEY in the video and do not expose it in public to avoid being misused. π
Oh great spotting @qihangnet !
Command cat /etc/*-release
outputs 1 file and 1 directory: /etc/os-release
and /etc/upstream-release
which is a directory and crashes. So it should be as you say: cat /etc/os-release
.
As per the API key don't worry, I've revoked it before posting the video (it's shown in the last second of it actually)
@Irian-Adappty @steve8708 PR https://github.com/BuilderIO/ai-shell/pull/72 will fix it.
Released in v0.1.21!
That's the speed of a π ! π
It works! Many thanks! This has been fixed very quickly and I can now use the latest version π
Hey @qihangnet @steve8708
@Irian-Adappty I'll save this great screenshot to my album, π
I'm on Linux Mint distribution and the package works great on version 0.1.13 but any higher version crashes on any command. Output of any command I try starting with 'ai':
Things I've tried:
My OS details:
Video of the issue: https://contecnika-my.sharepoint.com/:v:/g/personal/irian_caigo_es/EU1juhHdlB1BugdA3iTy0hAB5TRO_mNWaf9pgVwP8ONa2Q?e=IDzBxM