@@ -13,7 +13,7 @@ We can chat straight from the command line.
1313For example, via the DeepInfra API:
1414
1515``` sh
16- $ DEEPINFRA_KEY=" <KEY>" ; echo " hi there" | ata chat
16+ $ DEEPINFRA_KEY=" <KEY>" ; echo " hi there" | trf chat
1717```
1818
1919This defaults to the ` meta-llama/Llama-3.3-70B-Instruct ` model.
@@ -25,21 +25,21 @@ For example, create a file called `chat.sh` with the following content:
2525
2626export OPENAI_KEY=" $( cat /path/to/key) "
2727
28- ata chat --model=" gpt-4o"
28+ trf chat --model=" gpt-4o"
2929```
3030
3131and add it to your PATH.
3232Now, we can use it like this:
3333
3434``` sh
35- $ echo " This is a test. Respond with 'hello'." | ata chat
35+ $ echo " This is a test. Respond with 'hello'." | trf chat
3636hello
3737```
3838
3939Or we can run a spellcheck on a file:
4040
4141``` sh
42- $ echo " Do you see spelling errors in the following text?" ; cat myfile.txt | ata chat
42+ $ echo " Do you see spelling errors in the following text?" ; cat myfile.txt | trf chat
4343```
4444
4545Here is a more complex example.
@@ -61,7 +61,7 @@ Here is the text to check:
6161"
6262MODEL=" deepseek-ai/DeepSeek-R1-Distill-Llama-70B"
6363
64- (echo " $PROMPT " ; cat README.md) | ata chat --model=" $MODEL "
64+ (echo " $PROMPT " ; cat README.md) | trf chat --model=" $MODEL "
6565```
6666
6767### Text to Speech in Bash
@@ -70,10 +70,10 @@ We can read a file out loud from the command line.
7070For example, with the OpenAI API:
7171
7272``` sh
73- $ OPENAI_KEY=" $( cat /path/to/key) " ; cat myfile.txt | ata tts | vlc - --intf dummy
73+ $ OPENAI_KEY=" $( cat /path/to/key) " ; cat myfile.txt | trf tts | vlc - --intf dummy
7474```
7575
76- Here, we set the key, print the file ` myfile.txt ` to stdout, pipe it to ` ata ` to generate mp3 audio, and pipe that to ` vlc ` to play it.
76+ Here, we set the key, print the file ` myfile.txt ` to stdout, pipe it to ` trf ` to generate mp3 audio, and pipe that to ` vlc ` to play it.
7777The ` --intf dummy ` is optional; it just prevents ` vlc ` from opening a GUI.
7878
7979One way to make this easier to use is to create a Bash script that sets the environment variable and runs the command.
@@ -87,7 +87,7 @@ set -euo pipefail
8787
8888export OPENAI_KEY=" $( cat /path/to/key) "
8989
90- ata tts | vlc - --intf dummy
90+ trf tts | vlc - --intf dummy
9191```
9292
9393After adding ` spk.sh ` to your PATH, you can use it like this:
@@ -99,11 +99,11 @@ $ cat myfile.txt | spk
9999### Other Text to Speech Commands
100100
101101``` sh
102- $ DEEPINFRA_KEY=" $( cat /path/to/key) " ; cat myfile.txt | ata tts | vlc -
102+ $ DEEPINFRA_KEY=" $( cat /path/to/key) " ; cat myfile.txt | trf tts | vlc -
103103```
104104
105105``` sh
106- $ DEEPINFRA_KEY=" $( cat /path/to/key) " ; cat myfile.txt | ata tts --output myfile.mp3
106+ $ DEEPINFRA_KEY=" $( cat /path/to/key) " ; cat myfile.txt | trf tts --output myfile.mp3
107107```
108108
109109## Philosophy
0 commit comments