Thu Apr 20 18:40:28 2023 UTC ()
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.
(schmonz)
diff -r0 -r1.1 pkgsrc/misc/chatgpt-shell-cli/DESCR
diff -r0 -r1.1 pkgsrc/misc/chatgpt-shell-cli/Makefile
diff -r0 -r1.1 pkgsrc/misc/chatgpt-shell-cli/PLIST
diff -r0 -r1.1 pkgsrc/misc/chatgpt-shell-cli/distinfo
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.
# $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
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"
@comment $NetBSD: PLIST,v 1.1 2023/04/20 18:40:28 schmonz Exp $
bin/chatgpt
$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