mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Revert "update(gpt-engineer)[2]"
This reverts commit399a67e162
. Revert "update(gpt-engineer)[1]" This reverts commita38f5f1973
. Revert "update(gpt-engineer)" This reverts commitef47d55b43
.
This commit is contained in:
parent
c75393353a
commit
cdebf5af62
2 changed files with 12 additions and 10 deletions
|
@ -1,15 +1,18 @@
|
|||
#!/usr/bin/env -S pkgx +gum bash
|
||||
# shellcheck shell=bash
|
||||
#!/usr/bin/env -S tea bash
|
||||
|
||||
#---
|
||||
# dependencies:
|
||||
# charm.sh/gum: '*'
|
||||
#---
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
# attempt to get the key from the user’s shell rc files (if set)
|
||||
if [ -z "$OPENAI_API_KEY" ] && [ -n "$SHELL" ]; then
|
||||
# shellcheck disable=SC2155,2016
|
||||
if [ -z "$OPENAI_API_KEY" -a -n "$SHELL" ]; then
|
||||
export OPENAI_API_KEY="$(env -i "$SHELL" -ic 'echo $OPENAI_API_KEY')"
|
||||
fi
|
||||
|
||||
if [ -z "$OPENAI_API_KEY" ]; then
|
||||
if [ -z "$OPENAI_API_KEY"]; then
|
||||
gum format <<EoMD
|
||||
# OpenAI API key required
|
||||
You need an OpenAI API key to use this package.
|
||||
|
@ -19,12 +22,11 @@ if [ -z "$OPENAI_API_KEY" ]; then
|
|||
GPT4 is recommended (but you gotta sign up for the
|
||||
the [waitlist](https://openai.com/waitlist/gpt-4-api))
|
||||
|
||||
**this key will not be persisted by pkgx!**
|
||||
**this key will not be persisted by tea!**
|
||||
EoMD
|
||||
|
||||
echo # spacer
|
||||
|
||||
# shellcheck disable=SC2155
|
||||
export OPENAI_API_KEY="$(gum input --placeholder 'key pls')"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
distributable:
|
||||
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v{{version}}.tar.gz
|
||||
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v0.0.3.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
|
@ -9,9 +9,9 @@ display-name: GPT Engineer
|
|||
|
||||
dependencies:
|
||||
python.org: '>=3<3.12'
|
||||
pkgx.sh: ^1
|
||||
tea.xyz: ^0
|
||||
|
||||
entrypoint: pkgx ./entrypoint.sh
|
||||
entrypoint: tea ./entrypoint.sh
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in a new issue