Bug 278367

Summary: [NEW PORT] www/tgpt: AI Chatbots in terminal without needing API keys
Product: Ports & Packages Reporter: Yusuf Yaman <nxjoseph>
Component: Individual Port(s)Assignee: Gabriel M. Dutra <dutra>
Status: Closed FIXED    
Severity: Affects Only Me CC: dutra, henrichhartzer, nxjoseph
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
the shar file
none
the shar file
none
www/tgpt
none
update go version patch
none
www/tgpt none

Description Yusuf Yaman 2024-04-14 17:23:10 UTC
Created attachment 249977 [details]
the shar file

tgpt is a cross-platform command-line interface (CLI) tool that allows you to
use AI chatbot in your Terminal without requiring API keys. It supports
these providers: KoboldAI (koboldcpp/HF_SPACE_Tiefighter-13B),
Phind (Phind Model), Llama2 (Llama 2 70b), Blackbox AI (Blackbox model)
and OpenAI (All models, Requires API Key)
Comment 1 Yusuf Yaman 2024-04-15 22:27:58 UTC
Created attachment 250000 [details]
the shar file

I removed a unnecessary comment from the Makefile.
Comment 2 Yusuf Yaman 2024-04-18 19:02:56 UTC
Created attachment 250068 [details]
www/tgpt
Comment 3 Yusuf Yaman 2024-04-19 13:10:35 UTC
Created attachment 250086 [details]
update go version patch

Use go 1.21 because min/max builtin functions doesn't exist in go 1.20
Comment 4 Henrich Hartzer 2024-04-24 00:27:31 UTC
Can you consolidate the patches into one? At first glance, looks good to me.

Does this pass portlint?
Comment 5 Yusuf Yaman 2024-04-24 10:30:08 UTC
Created attachment 250197 [details]
www/tgpt

(In reply to Henrich Hartzer from comment #4)
Yes, it does pass portlint.

I consolidated the patches into one.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-04-24 14:55:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a4c112eb06c26984cb741734258f4dfb44570b42

commit a4c112eb06c26984cb741734258f4dfb44570b42
Author:     Yusuf Yaman <nxjosephofficial@protonmail.com>
AuthorDate: 2024-04-24 14:51:06 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2024-04-24 14:54:09 +0000

    www/tgpt: Add new port

    tgpt is a cross-platform command-line interface tool that allows
    you to use AI chatbot in your Terminal without requiring API keys

    PR:             278367

 www/Makefile             |  1 +
 www/tgpt/Makefile (new)  | 62 +++++++++++++++++++++++++++++++++++++
 www/tgpt/distinfo (new)  | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
 www/tgpt/pkg-descr (new) |  5 +++
 4 files changed, 147 insertions(+)
Comment 7 Gabriel M. Dutra freebsd_committer freebsd_triage 2024-04-24 20:03:42 UTC
Committed, thank you!
Comment 8 Yusuf Yaman 2024-04-24 20:06:33 UTC
(In reply to Gabriel M. Dutra from comment #7)
You are welcome, thanks for reviewing!