Comments

You must log in or register to comment.

rumovoice OP t1_jauxt0h wrote

https://github.com/not-poma/lazyshell

A smart autocomplete script invoked with ALT+G. It can modify the existing command as well.

67

kekinor t1_jayxe3j wrote

There is also plz, which seems more mature:

https://github.com/m1guelpf/plz-cli

7

rumovoice OP t1_jaz2inw wrote

shell_gpt seems more mature than that

https://github.com/TheR1D/shell_gpt

Both of those are separate scripts rather than hotkey bindings that work inline in your shell.

4

kekinor t1_jb09s2y wrote

Might be that I misunderstood then. Thanks for pointing out the differences and shell_gpt.

1

[deleted] t1_jav5pu1 wrote

What dataset did you use to train the model? I'm creating something similar for an app and looking for a dataset.

Edit: NVM, you are using OpenAI API.

34

ginger_beer_m t1_jawngph wrote

OpenAI .. LOL

16

Quazar_omega t1_jax5sju wrote

I swear, sooner or later they'll change name into some dystopian stuff like EthicalAI or something since they aren't much open anymore, but still want to keep a "good" face

4

Sirisian t1_jayfok9 wrote

They bought https://ai.com the other day if you missed that. It directs to ChatGPT for now.

6

ank_itsharma t1_jax7x0s wrote

On a similar context, we can fine tune OpenAI API for a particular set of data, right?

2

DaTaha t1_jawprrx wrote

What options does one have if one wants ChatGPT-like functionality but without actually reaching out to OpenAI or other such online services?

1

crayphor t1_jawrahh wrote

You can use a smaller model like GPT-2. You are not going to get ChatGPT performance without a terabyte of VRAM, but if you want to try something locally, GPT-2 exists.

2

Art10001 t1_jayfgsc wrote

I suggest another model such as OPT or even Flan-T5, because they're much easier to setup than OAI's outdated instructions that use outdated package versions that effectively demand a for-purpose VM or Docker.

3

Pat3418 t1_jbjmcty wrote

Have you done something like this? Any references you can share? Would love to have an offline tool like this…

1

Art10001 t1_jbjv13z wrote

I once setup the smallest model of Pygmalion to act as a chatbot. The UI was premade and Gradio-based.

It worked well. I had tried Flan-T5 first, but the UI did not recognize the model kind (yet.)

1

DAlmighty t1_javrbwq wrote

This is definitely impressive but it also feels like more work than to just bang out the commands.

21

rumovoice OP t1_javxdca wrote

If you know and remember the command - yes, if you need to google or read the man first this could be faster. Or sometimes faster for complex commands with subshells and regexes.

33

DAlmighty t1_jaw5m9v wrote

Regexes are definitely the bane of my existence.

5

hiptobecubic t1_jaw1yhv wrote

The ffmpeg example is worth it alone

19

n8mo t1_jawxx5t wrote

Not me googling the syntax for ffmpeg commands every time I have to use it LMFAO

9

maxToTheJ t1_jaw2nk0 wrote

Especially given the compute used on OpenAI end. This isn’t sustainable

5

omgpop t1_jav1omw wrote

Does it/could it send your directory/file tree as part of the prompt?

8

rumovoice OP t1_jav292n wrote

It sends only OS name and current command. I tried to avoid sending anything else for privacy reasons.

33

notaninvestor633 t1_javmt3c wrote

Wow this is awesome. Can’t wait to tinker around with it

6

BeautifulLurker t1_jax84v8 wrote

Could you DM me that .tgz? You see, I'm Satoshi and have been looking for that file for a while.

5

Art10001 t1_jayfsfe wrote

I've seen DM like 5 times in recent memory...

In reddit we use PM, Private Message. Not DM, Direct Message, which is a Discordism.

−4

WarAndGeese t1_jax2je6 wrote

I imagine that stuff like this will be the future of interacting with computers, at least to a large extent, but it's frustrating how people sacrifice certainty for 'the probability of it being right are good enough'.

3

WarAndGeese t1_jax2k9d wrote

I think I would prefer that ends up not being the case, but I can see the trajectory of how it would be.

2

eclipsejki t1_jb0tmeq wrote

this is dangerous on so many levels. External API calls has access to your entire computer. I'd wait for smaller personal LLM

2

BezoomnyBrat t1_jaw7k23 wrote

Looks great, definitely going to try it out. Pity it works only with zsh though and not with bash

1

rumovoice OP t1_jawfmk1 wrote

I'm not sure if bash has autocomplete capabilities like that (like asking for a query under the current command line)

1

ke7cfn t1_jazjfwv wrote

Can it download and build sshfs for an m1 mac by query ?

1

rumovoice OP t1_jazl88i wrote

> download and build sshfs for an m1 mac

its answer: git clone https://github.com/osxfuse/sshfs.git && cd sshfs && ./autogen.sh && ./configure && make && sudo make install

it doesn't do well in cases where it needs some recent knowledge like m1 issues

1

Zieng t1_jax04t4 wrote

I'll try it out! but how is the API availability? bc the availability on the chatbot at least is too low, for free tier :(

0

rumovoice OP t1_jax22id wrote

https://status.openai.com

the availability is meh, 99%

2

Art10001 t1_jayg0yg wrote

SLA level of 99 % uptime/availability results in the following periods of allowed downtime/unavailability:

Daily: 14m 24s

Weekly: 1h 40m 48s

Monthly: 7h 14m 41s

Quarterly: 21h 44m 4.4s

Yearly: 3d 14h 56m 18s

0