mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(metagpt)
add OPEN_API_MODEL key to test; convert to `bkpyvenv`. closes #4704
This commit is contained in:
parent
eaf5f19362
commit
e910345810
|
@ -1,7 +1,7 @@
|
|||
### Setup your OPENAI_API_KEY, or make sure it existed in the env
|
||||
### Setup your OPENAI_API_KEY and OPENAI_API_MODEL, or make sure they exist in the env
|
||||
|
||||
```
|
||||
mkdir ~/.metagpt/key.yaml
|
||||
cp config/config.yaml ~/.metagpt/key.yaml
|
||||
vim ~/.metagpt/key.yaml
|
||||
```
|
||||
```
|
||||
|
|
|
@ -1,19 +1,31 @@
|
|||
distributable:
|
||||
url: https://github.com/geekan/MetaGPT/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
display-name: MetaGPT
|
||||
|
||||
versions:
|
||||
github: geekan/MetaGPT
|
||||
|
||||
dependencies:
|
||||
# Python 3.12 ==> ModuleNotFoundError: No module named 'distutils'
|
||||
python.org: '>=3.9<3.12'
|
||||
pkgx.sh: ^1
|
||||
|
||||
build:
|
||||
- python-venv.sh {{prefix}}/bin/metagpt
|
||||
dependencies:
|
||||
# Python 3.12 ==> ModuleNotFoundError: No module named 'distutils'
|
||||
python.org: '>=3.9<3.12'
|
||||
script:
|
||||
- bkpyvenv stage {{prefix}} {{version}}
|
||||
- ${{prefix}}/venv/bin/pip install .
|
||||
- bkpyvenv seal {{prefix}} metagpt
|
||||
|
||||
provides:
|
||||
- bin/metagpt
|
||||
|
||||
test:
|
||||
env:
|
||||
OPENAI_API_KEY: metaGptTestKey
|
||||
OPENAI_API_MODEL: gpt-4-1106-preview
|
||||
script:
|
||||
# for more tests we need to set valid OPENAI_API_KEY with gpt-4 access
|
||||
- metagpt --help | grep 'Run a startup. Be a boss.'
|
||||
# for more tests we need to set valid OPENAI_API_KEY with gpt-4 access
|
Loading…
Reference in a new issue