tgpt: AI Chatbot in Terminal - No API

Moderator: Forum moderators

Post Reply
sonny
Posts: 725
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 486 times
Been thanked: 173 times

tgpt: AI Chatbot in Terminal - No API

Post by sonny »

tgpt-1.jpg
tgpt-1.jpg (28.28 KiB) Viewed 1240 times

To install: copy and paste the code below on your Terminal.

To run: tgpt 'your prompt'

To update: tgpt -u

Tested working with FossaPup64-9.5 too.

Code: Select all

curl -sSL https://raw.githubusercontent.com/aandrew-me/tgpt/main/install | bash -s /usr/local/bin

[/b]

tgpt-2.jpg
tgpt-2.jpg (72.18 KiB) Viewed 1240 times
tgpt-3.jpg
tgpt-3.jpg (105.08 KiB) Viewed 1240 times

https://github.com/aandrew-me/tgpt

Last edited by sonny on Sun Aug 04, 2024 5:40 pm, edited 1 time in total.
darksun
Posts: 124
Joined: Tue Dec 19, 2023 10:12 am
Location: sitting in front of my terminal
Has thanked: 52 times
Been thanked: 37 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by darksun »

I have been using it since it was launched, very useful.

It does not update itself nor alert you when a new version is available; for the ones who cleverly use RSS technology , the rss feed to receive updates is

Code: Select all

https://github.com/aandrew-me/tgpt/releases.atom

then from terminal, when a new version is available

Code: Select all

tgpt -u

to install it

User avatar
josejp2424
Posts: 245
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 261 times
Been thanked: 154 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by josejp2424 »

I liked this boot chat.
I even made a gui in yad. that uses tmux. and so it saves my conversations, it even creates a log.

https://www.mediafire.com/file/rwhgv1aj ... _amd64.pet

darksun
Posts: 124
Joined: Tue Dec 19, 2023 10:12 am
Location: sitting in front of my terminal
Has thanked: 52 times
Been thanked: 37 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by darksun »

josejp2424 wrote: Wed Aug 07, 2024 8:21 pm

I liked this boot chat.
I even made a gui in yad. that uses tmux. and so it saves my conversations, it even creates a log.

https://www.mediafire.com/file/rwhgv1aj ... _amd64.pet

Thank you.

jamesbond
Posts: 717
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 402 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by jamesbond »

Boy, this is going to waste a lot of my time :lol:

# tgpt -m --provider koboldai

┃ My grandmother used to tell me this story. She said, Empress Palpatine
┃ loves Luke Skywalker so much that but that Luke hated her with a passion.
┃ Luke then hired an assassin named Han Solo ...

╭─ Bot

One day, Empress Palpatine was visiting a planet called Tatooine. She went to a
cantina and sat down to drink. Suddenly, Han Solo came up to her and shot her
with a blaster. The blast was powerful and Empress Palpatine died instantly.
The people of Tatooine were shocked and horrified by what had happened. They
knew that Luke Skywalker was responsible for hiring Han Solo to kill Empress
Palpatine. Luke was now considered a criminal and a traitor. He had to go into
hiding or face the consequences.
Meanwhile, Han Solo became a hero on Tatooine. The people celebrated his bravery
and courage. He was given a medal and a large reward by the local authorities.
Han Solo decided to stay on Tatooine and live out the rest of his days as a
respected citizen.
Years later, another emperor named Darth Vader came to power. He sought revenge
against Luke Skywalker for killing his mother, Empress Palpatine. Darth Vader
sent his best bounty hunters to find Luke and bring him back dead or alive.
Han Solo, now an old man, felt a sense of duty to help Luke. He knew that Luke
had saved his life once before, and now it was his turn to repay the debt.

sonny
Posts: 725
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 486 times
Been thanked: 173 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by sonny »

Waste your time so good, JB :thumbup2:

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 481 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by Jasper »

@josejp2424

Thanks for sharing this :thumbup:

I did upload this for Fossapup last year here:

viewtopic.php?p=88342&hilit=TGPT#p88342

Your package is designed for Bookworm64 and to get it to work with FP64, I needed to recompile Tmux.

The one issue I have is the initial screen which appears to give an output which refers I believe to the colour layout (?)

Image

I have looked at the GUI script and cannot see anything that relates to this.

Any suggestions?

It works regardless :lol:

User avatar
josejp2424
Posts: 245
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 261 times
Been thanked: 154 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by josejp2424 »

Jasper wrote: Tue Aug 13, 2024 6:05 am

@josejp2424

Thanks for sharing this :thumbup:

I did upload this for Fossapup last year here:

viewtopic.php?p=88342&hilit=TGPT#p88342

Your package is designed for Bookworm64 and to get it to work with FP64, I needed to recompile Tmux.

The one issue I have is the initial screen which appears to give an output which refers I believe to the colour layout (?)

Image

I have looked at the GUI script and cannot see anything that relates to this.

Any suggestions?

It works regardless :lol:

Tmux you can use the one from the same repo. The gui works on any puppy that has urxvt and tmux .
The configuration that gives you error.
It is in /opt/tgpt-tmux/share/tmux/.Xdefaults there is a hidden file is the confi that urxvt takes.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 481 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by Jasper »

@josejp2424

Thanks for the info, it's appreciated. Will have to read up on how to implement changes :roll:

The initial error on FP95 is due to an older version of GLibc being used.

Image

Which is why I had to recompile it for FP95 and replace it within your application to get it to work.

tmux-3.4 (for Fossapup64-95) .......... just for testing!!

This build I used to overwrite your existing files.

https://www.mediafire.com/file/4azsb9db ... 4.pet/file

If you try to use the build in the PPM it fails :thumbdown:

Image

Image

Running Tmux by itself (my build) shows this :lol:

Image

Guess it's not an issue with your config file ....... instead it is with Fossapup64-95.

BTW It works perfectly on JammyPup64 :thumbup:

User avatar
josejp2424
Posts: 245
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 261 times
Been thanked: 154 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by josejp2424 »

Jasper wrote: Wed Aug 14, 2024 12:11 pm

Image

I see that there is missing libutempter0 library, to run tmux

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 481 times

Re: tgpt: AI Chatbot in Terminal - No API

Post by Jasper »

@josejp2424

Yes, the Tmux from the PPM complains of a missing library :thumbdown:

Image

So, I had to compile it myself to get it to work.

My build is newer ie Tmux-3.4.

Post Reply

Return to “BookwormPup”