pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/chatgpt-shell-cli



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Thu Apr 20 18:40:28 UTC 2023

Added Files:
        pkgsrc/misc/chatgpt-shell-cli: DESCR Makefile PLIST distinfo

Log Message:
Add chatgpt-shell-cli: Shell script to use OpenAI's ChatGPT and DALL-E

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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/chatgpt-shell-cli/DESCR \
    pkgsrc/misc/chatgpt-shell-cli/Makefile \
    pkgsrc/misc/chatgpt-shell-cli/PLIST \
    pkgsrc/misc/chatgpt-shell-cli/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/misc/chatgpt-shell-cli/DESCR
diff -u /dev/null pkgsrc/misc/chatgpt-shell-cli/DESCR:1.1
--- /dev/null   Thu Apr 20 18:40:28 2023
+++ pkgsrc/misc/chatgpt-shell-cli/DESCR Thu Apr 20 18:40:28 2023
@@ -0,0 +1,9 @@
+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.
Index: pkgsrc/misc/chatgpt-shell-cli/Makefile
diff -u /dev/null pkgsrc/misc/chatgpt-shell-cli/Makefile:1.1
--- /dev/null   Thu Apr 20 18:40:28 2023
+++ pkgsrc/misc/chatgpt-shell-cli/Makefile      Thu Apr 20 18:40:28 2023
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2023/04/20 18:40:28 schmonz Exp $
+
+DISTNAME=              ${GITHUB_PROJECT}
+PKGNAME=               ${GITHUB_PROJECT:tl}-0.0.20230420
+CATEGORIES=            misc
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=0xacx/}
+GITHUB_PROJECT=                chatGPT-shell-cli
+GITHUB_TAG=            42d82b9d651be9d43f7f2ae52dcfe6c56e12b171
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/0xacx/chatGPT-shell-cli/
+COMMENT=               Shell script to use OpenAI's ChatGPT and DALL-E
+LICENSE=               mit
+
+DEPENDS+=              bash-[0-9]*:../../shells/bash
+DEPENDS+=              curl-[0-9]*:../../www/curl
+DEPENDS+=              jq-[0-9]*:../../devel/jq
+
+USE_LANGUAGES=         # none
+NO_BUILD=              yes
+INSTALLATION_DIRS=     bin
+
+REPLACE_BASH=          chatgpt.sh
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+DEPENDS+=              xdg-utils-[0-9]*:../../misc/xdg-utils
+SUBST_CLASSES+=                open
+SUBST_STAGE.open=      do-configure
+SUBST_FILES.open=      chatgpt.sh
+SUBST_SED.open=                -e 's|open \("$${image_url}"\)|xdg-open \1|g'
+.endif
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/chatgpt.sh ${DESTDIR}${PREFIX}/bin/chatgpt
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/chatgpt-shell-cli/PLIST
diff -u /dev/null pkgsrc/misc/chatgpt-shell-cli/PLIST:1.1
--- /dev/null   Thu Apr 20 18:40:28 2023
+++ pkgsrc/misc/chatgpt-shell-cli/PLIST Thu Apr 20 18:40:28 2023
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2023/04/20 18:40:28 schmonz Exp $
+bin/chatgpt
Index: pkgsrc/misc/chatgpt-shell-cli/distinfo
diff -u /dev/null pkgsrc/misc/chatgpt-shell-cli/distinfo:1.1
--- /dev/null   Thu Apr 20 18:40:28 2023
+++ pkgsrc/misc/chatgpt-shell-cli/distinfo      Thu Apr 20 18:40:28 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/04/20 18:40:28 schmonz Exp $
+
+BLAKE2s (chatGPT-shell-cli-42d82b9d651be9d43f7f2ae52dcfe6c56e12b171.tar.gz) = 92d0efc2d66677a0ee4e0bc90417a5c92960bd0b6d2734353d3a6bd30b52c797
+SHA512 (chatGPT-shell-cli-42d82b9d651be9d43f7f2ae52dcfe6c56e12b171.tar.gz) = 
63a954da3d950ededf79c087abf2d0a1a0267121b81b01ba5f1255139f933a1ad46a74e87022fceda7d24fc7733185927874d29d092dafb62216d74f1fd66eae
+Size (chatGPT-shell-cli-42d82b9d651be9d43f7f2ae52dcfe6c56e12b171.tar.gz) = 9309 bytes



Home | Main Index | Thread Index | Old Index