Skip to content

a simple api call AI in bash script just for sake of ask question in terminal.

Notifications You must be signed in to change notification settings

Aishete/terminal_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Terminal_Chat

a simple api call in bash script just for sake of ask question in terminal.

Try Terminal_Chat

clone the repo to Try

git clone git@github.com:Aishete/terminal_chat.git

then ask it will ask you to add token and just following it

sh ai.sh hey hello 

how to only call ai to ask

This method creates an alias, which is a shortcut within your shell.

make sure you make it execute able first

chmod +x ai.sh
  1. Open your shell's configuration file: This is usually .bashrc (Bash), .zshrc (Zsh), or a similar file.

  2. Add an alias: Add the following line to the file, replacing /path/to/ai.sh with the actual path:

    alias ai="/path/to/ai.sh"
  3. Source the configuration file: Save the file and then source it to apply the changes:

source ~/.bashrc 

Now, typing ai will execute ai.sh, but only within the shell session where you defined the alias.

TODO

  • use bash for the sake of learning
  • able to add and use api key to interact with ai in clould
  • able to interact with terminal such as create file etc
  • able store some ref memory
  • able to use local ai model as a brain

About

a simple api call AI in bash script just for sake of ask question in terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages