From nobody Tue Apr 18 13:29:53 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q14Xf1cHKz456jp; Tue, 18 Apr 2023 13:29:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q14Xf0hH5z438N; Tue, 18 Apr 2023 13:29:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681824594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NnRZ/caH8sjDyOLxOFv1kp2rGLLhUhkXBsI6AAZfW7M=; b=cMurbSYFfp1O/GWefOQKSOQa4HcMECW3tJmU3NbTDDThIwdoI8reZByJZAYMs27y7nVa6f In6B2Tqd7Q3ygA1+a78OSyrJIxEKtKJpKD96Q+bk05/gywolPb+G7TDs019flnJmSqo4Fl Ikw3VQPccNAwMhF38gpDSsZ2be3yCrBQZCMQ16t6yuqzmnDE/mvUhTPm7v6lEJam2tsIC9 GiMtU8e+w6Jzf8pwjYiuJ5W6zF2PAqLoOXLNAmaM9XqMvSHZTvWccS1ntUbVvoeeUiGqTJ mIUImriAiprFoegi+bjbIA+6fskXTxanvKIaARtm4rPJTJhFC6WSttHqkIZM4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681824594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NnRZ/caH8sjDyOLxOFv1kp2rGLLhUhkXBsI6AAZfW7M=; b=wwI8gCM6NJHHWzC6tNtNn9ejp0FeESORYzrhZPOHkmUcnOAGDntLEfejH0/27A6K+ldNbs VSjUP2dYWPCJ79TqdKrDpwPTFPWD66FKDSWM3foken2ntvr83YiUoP3DRbWgAdu9xUvLcC zyM7bJFZbYIbgAgAKzFJZrwTkHzp9Z0ZU4SU67KOetr+lBdy10uRRH7siZUjsJ1uKs1LdT pnwxaquh+HYSL4re4SUiAI/iblvTJ0yMPyeG9fQ6VmSs0lLHN/idjVVTAW9jHcznQrP1Mx VrLkDHIvCliPx6aGrkR4e2FD+GQdLOY9TLFg8HOy7MqhVGcXFDm9uGMTPLFPjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681824594; a=rsa-sha256; cv=none; b=TfSjWrBksTBs/2yEfublKc67SZV8z+odXIAgx0m/pCBdf7ydFyoskOzrBqQ3VMj5qmiEQ1 MlsC/3c3FKwyPKtPZcXhaqSYGnrYwMcP5Y/hvM6HtSLkIqA6RULFNL1qsU5UNtM3e9/JuZ TMGv8knAQUQKKzF67S0CbCKMxC5Bge7OuY+vbk7mW+ZXzQtZjStCm0Rjf/FDxn6WR/ll1x 201TOcYSMaBk/MeTbSg34Ga/VfKMgGJtVKjL9GI02zB2qtCI/GymuZ9ViWaut2xAH7kLAZ QXfMUxntBjoU2mwmS0d51PgtlFsFT1S6i1l3WIASEY2B21e72jDOmYf5pzntHw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q14Xd6f24z1CGr; Tue, 18 Apr 2023 13:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33IDTrY8013879; Tue, 18 Apr 2023 13:29:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33IDTrLR013878; Tue, 18 Apr 2023 13:29:53 GMT (envelope-from git) Date: Tue, 18 Apr 2023 13:29:53 GMT Message-Id: <202304181329.33IDTrLR013878@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: f746aec404d5 - main - misc/chatgpt-shell-cli: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f746aec404d534d2255b094f74993d526a5ed20d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=f746aec404d534d2255b094f74993d526a5ed20d commit f746aec404d534d2255b094f74993d526a5ed20d Author: Nicola Vitale AuthorDate: 2023-04-18 13:26:23 +0000 Commit: Nicola Vitale CommitDate: 2023-04-18 13:29:11 +0000 misc/chatgpt-shell-cli: Add new port A simple, lightweight shell script to use OpenAI's chatGPT and DALL-E from the terminal without installing python or node.js. The script uses the official ChatGPT model gpt-3.5-turbo with the OpenAI API endpoint /chat/completions. You can also use the new gpt-4 model, if you have access. The script supports the use of all other OpenAI models with the completions endpoint and the images/generations endpoint for generating images. https://github.com/0xacx/chatGPT-shell-cli --- misc/Makefile | 1 + misc/chatgpt-shell-cli/Makefile | 35 +++++++++++++++++++++++++++++++++++ misc/chatgpt-shell-cli/distinfo | 3 +++ misc/chatgpt-shell-cli/pkg-descr | 7 +++++++ 4 files changed, 46 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 5b46911114b6..a095bd368e54 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -38,6 +38,7 @@ SUBDIR += bsod SUBDIR += buffer SUBDIR += caffe + SUBDIR += chatgpt-shell-cli SUBDIR += cheat SUBDIR += chef SUBDIR += chmlib diff --git a/misc/chatgpt-shell-cli/Makefile b/misc/chatgpt-shell-cli/Makefile new file mode 100644 index 000000000000..618ba85c1fd7 --- /dev/null +++ b/misc/chatgpt-shell-cli/Makefile @@ -0,0 +1,35 @@ +PORTNAME= chatgpt-shell-cli +DISTVERSION= g20230411 +CATEGORIES= misc + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Shell script to use OpenAI's ChatGPT and DALL-E from the terminal +WWW= https://github.com/0xacx/chatGPT-shell-cli + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= bash:shells/bash \ + curl:ftp/curl \ + jq:textproc/jq \ + xdg-open:devel/xdg-utils + +USES= magick:run + +USE_GITHUB= yes +GH_ACCOUNT= 0xacx +GH_PROJECT= chatGPT-shell-cli +GH_TAGNAME= 42d82b9 + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= chatgpt + +post-patch: + ${REINPLACE_CMD} 's/open \("$${image_url}"\)/xdg-open \1/g' ${WRKSRC}/chatgpt.sh + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/chatgpt.sh ${PREFIX}/bin/chatgpt + +.include diff --git a/misc/chatgpt-shell-cli/distinfo b/misc/chatgpt-shell-cli/distinfo new file mode 100644 index 000000000000..8148a66cc088 --- /dev/null +++ b/misc/chatgpt-shell-cli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681823063 +SHA256 (0xacx-chatGPT-shell-cli-g20230411-42d82b9_GH0.tar.gz) = b4c2b7d9b5226598be4f2f6d6cc44cc4d340d58d1d9f8e791cd5e90e88679f97 +SIZE (0xacx-chatGPT-shell-cli-g20230411-42d82b9_GH0.tar.gz) = 9312 diff --git a/misc/chatgpt-shell-cli/pkg-descr b/misc/chatgpt-shell-cli/pkg-descr new file mode 100644 index 000000000000..6c43f0a0e034 --- /dev/null +++ b/misc/chatgpt-shell-cli/pkg-descr @@ -0,0 +1,7 @@ +A simple, lightweight shell script to use OpenAI's chatGPT and DALL-E from the +terminal without installing python or node.js. The script uses the official +ChatGPT model gpt-3.5-turbo with the OpenAI API endpoint /chat/completions. +You can also use the new gpt-4 model, if you have access. + +The script supports the use of all other OpenAI models with the completions +endpoint and the images/generations endpoint for generating images.