Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Apr 30, 2024
1 parent 7a9d5b6 commit 716f323
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/runNode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,31 @@ jobs:
chmod +x ./install.sh
./install.sh
gaianet --help
- name: Use TinyLlama-1.1B-Chat
run: |
gaianet config --chat-url "https://huggingface.co/second-state/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/TinyLlama-1.1B-Chat-v1.0-Q5_K_M.gguf" --chat-ctx-size 1024 --prompt-template chatml
- name: Initialize
run: |
gaianet init
- name: Run
run: |
gaianet start
- name: Sleep 10 seconds
run: sleep 10
- name: Sleep 15 seconds
run: sleep 15
- name: Test localhost API
run: |
curl --fail -X POST http://localhost:8080/v1/chat/completions \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"Phi-3-mini-4k-instruct-Q5_K_M"}'
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
- name: Test frp API
run: |
ADDRESS=$(jq -r '.address' $HOME/gaianet/config.json)
echo $ADDRESS
curl --fail -X POST https://$ADDRESS.gaianet.network/v1/chat/completions \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"Phi-3-mini-4k-instruct-Q5_K_M"}'
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
- name: Stop
run: |
gaianet stop

0 comments on commit 716f323

Please sign in to comment.