Bug 278367 - [NEW PORT] www/tgpt: AI Chatbots in terminal without needing API keys
Summary: [NEW PORT] www/tgpt: AI Chatbots in terminal without needing API keys
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gabriel M. Dutra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 17:23 UTC by Yusuf Yaman
Modified: 2024-04-24 20:06 UTC (History)
3 users (show)

See Also:


Attachments
the shar file (10.85 KB, text/plain)
2024-04-14 17:23 UTC, Yusuf Yaman
no flags Details
the shar file (10.84 KB, text/plain)
2024-04-15 22:27 UTC, Yusuf Yaman
no flags Details
www/tgpt (11.13 KB, patch)
2024-04-18 19:02 UTC, Yusuf Yaman
no flags Details | Diff
update go version patch (646 bytes, patch)
2024-04-19 13:10 UTC, Yusuf Yaman
no flags Details | Diff
www/tgpt (11.13 KB, patch)
2024-04-24 10:30 UTC, Yusuf Yaman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!