Skip to content

Commit

Permalink
pray more
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 6, 2023
1 parent 1904eab commit e1fbcbb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/run_autogpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,24 @@ jobs:

- name: wait for openai
run: |
for x in 1 2 3 4 5 6 7 9 0 1 2 3 4 5 6 7 9 0;
do
docker-compose -f nobuilds/docker-compose.yml ps
docker ps || echo ok
for dpid in `docker ps -q`;
do
echo $dpid;
docker inspect $dpid || echo fail
done
for url in http://localhost:8080/v1/models http://127.0.0.1:8080/v1/models http://172.18.0.3:8080/v1/models http://172.18.0.2:8080/v1/models http://172.18.0.1:8080/v1/models;
do
echo $url
curl --verbose $url
done
echo step
sleep 10
done
#timeout 300 bash -c 'while [[ "$(curl --insecure -s -o /dev/null -w ''%{http_code}'' https://localhost:8080/v1/models)" != "200" ]]; do sleep 5; done'
# for x in 1 2 3 4 5 6 7 9 0 1 2 3 4 5 6 7 9 0;
# do
# docker-compose -f nobuilds/docker-compose.yml ps
# docker ps || echo ok
# for dpid in `docker ps -q`;
# do
# echo $dpid;
# docker inspect $dpid || echo fail
# done
#for url in http://localhost:8080/v1/models http://127.0.0.1:8080/v1/models http://172.18.0.3:8080/v1/models http://172.18.0.2:8080/v1/models http://172.18.0.1:8080/v1/models;
#do
# echo $url
# curl --verbose $url
#done
#echo step
#sleep 10
#done
timeout 300 bash -c 'while [[ "$(curl --insecure -s -o /dev/null -w ''%{http_code}'' http://127.0.0.1:8080/v1/models)" != "200" ]]; do sleep 5; done'
- name: Autogpt
uses: meta-introspector/agent-action@master
Expand Down
4 changes: 2 additions & 2 deletions nobuilds/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
depends_on:
- ai_ticket
healthcheck:
test: curl --fail http://localhost:5000/v1/models
test: curl --fail http://127.0.0.1:8080/v1/models
interval: 5s
timeout: 5s
retries: 5
Expand Down Expand Up @@ -66,7 +66,7 @@ services:
- GITHUB_PAT="${GITHUB_PAT}"
- GITHUB_REPO="jmikedupont2/ai-ticket"
- OPENAI_API_KEY=your-openai-api-key
- OPENAI_API_BASE=http://host.docker.internal:8080/v1
- OPENAI_API_BASE=http://127.0.0.1:8080/v1
image: h4ckermike/autogpt
volumes:
- ./vendor/Auto-GPT/autogpts/autogpt/autogpt/:/app/autogpt
Expand Down

0 comments on commit e1fbcbb

Please sign in to comment.