@@ -2,90 +2,90 @@ name: Run Examples
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
8- workflow_dispatch : # Allows manual triggering
7+ branches : [main]
8+ workflow_dispatch : # Allows manual triggering
99 schedule :
1010 - cron : ' 0 * * * *' # every hour
1111
1212jobs :
1313 chat :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v4
17- - name : Set up Node
18- uses : actions/setup-node@v4
19- with :
20- node-version : ' 18'
21- - name : Install dependencies
22- env :
23- GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
24- run : |
25- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
26- yarn install
27- - name : Run chat.ts
28- env :
29- LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
30- run : |
31- yarn tsn -T examples/chat.ts
16+ - uses : actions/checkout@v4
17+ - name : Set up Node
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 18'
21+ - name : Install dependencies
22+ env :
23+ GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
24+ run : |
25+ git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
26+ yarn install
27+ - name : Run chat.ts
28+ env :
29+ LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
30+ run : |
31+ yarn tsn -T examples/chat.ts
3232
3333 structured :
3434 runs-on : ubuntu-latest
3535 steps :
36- - uses : actions/checkout@v4
37- - name : Set up Node
38- uses : actions/setup-node@v4
39- with :
40- node-version : ' 18'
41- - name : Install dependencies
42- env :
43- GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
44- run : |
45- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
46- yarn install
47- - name : Run structured.ts
48- env :
49- LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
50- run : |
51- yarn tsn -T examples/structured.ts
52-
36+ - uses : actions/checkout@v4
37+ - name : Set up Node
38+ uses : actions/setup-node@v4
39+ with :
40+ node-version : ' 18'
41+ - name : Install dependencies
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
44+ run : |
45+ git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
46+ yarn install
47+ - name : Run structured.ts
48+ env :
49+ LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
50+ run : |
51+ yarn tsn -T examples/structured.ts
52+
5353 tool_call :
5454 runs-on : ubuntu-latest
5555 steps :
56- - uses : actions/checkout@v4
57- - name : Set up Node
58- uses : actions/setup-node@v4
59- with :
60- node-version : ' 18'
61- - name : Install dependencies
62- env :
63- GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
64- run : |
65- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
66- yarn install
67- - name : Run tool_call.ts
68- env :
69- LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
70- run : |
71- yarn tsn -T examples/tool_call.ts
72-
56+ - uses : actions/checkout@v4
57+ - name : Set up Node
58+ uses : actions/setup-node@v4
59+ with :
60+ node-version : ' 18'
61+ - name : Install dependencies
62+ env :
63+ GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
64+ run : |
65+ git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
66+ yarn install
67+ - name : Run tool_call.ts
68+ env :
69+ LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
70+ run : |
71+ yarn tsn -T examples/tool_call.ts
72+
7373 vision :
7474 runs-on : ubuntu-latest
7575 steps :
76- - uses : actions/checkout@v4
77- - name : Set up Node
78- uses : actions/setup-node@v4
79- with :
80- node-version : ' 18'
81- - name : Install dependencies
82- env :
83- GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
84- run : |
85- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
86- yarn install
87- - name : Run vision.ts
88- env :
89- LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
90- run : |
91- yarn tsn -T examples/vision.ts
76+ - uses : actions/checkout@v4
77+ - name : Set up Node
78+ uses : actions/setup-node@v4
79+ with :
80+ node-version : ' 18'
81+ - name : Install dependencies
82+ env :
83+ GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
84+ run : |
85+ git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
86+ yarn install
87+ - name : Run vision.ts
88+ env :
89+ LLAMA_API_KEY : ${{ secrets.LLAMA_API_KEY }}
90+ run : |
91+ yarn tsn -T examples/vision.ts
0 commit comments