diff --git a/.github/workflows/run_autogpt.yml b/.github/workflows/run_autogpt.yml index fc6903c..3731b1f 100644 --- a/.github/workflows/run_autogpt.yml +++ b/.github/workflows/run_autogpt.yml @@ -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 diff --git a/nobuilds/docker-compose.yml b/nobuilds/docker-compose.yml index 010a5a0..d15878d 100644 --- a/nobuilds/docker-compose.yml +++ b/nobuilds/docker-compose.yml @@ -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 @@ -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