Skip to content

Commit a01d574

Browse files
fix: install examples deps as part of bootstrap script (#1022)
Co-authored-by: Samuel El-Borai <[email protected]>
1 parent 619903c commit a01d574

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Diff for: .github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
with:
2323
node-version: '18'
2424

25-
- name: Install dependencies
26-
run: yarn install
25+
- name: Bootstrap
26+
run: ./scripts/bootstrap
2727

2828
- name: Check types
2929
run: ./scripts/lint
@@ -41,8 +41,8 @@ jobs:
4141
with:
4242
node-version: '18'
4343

44-
- name: Install dependencies
45-
run: yarn install
44+
- name: Bootstrap
45+
run: ./scripts/bootstrap
4646

4747
- name: Check build
4848
run: ./scripts/build

Diff for: examples/logprobs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function main() {
1313
stream: true,
1414
logprobs: true,
1515
})
16-
.on('logprob', (logprob) => {
16+
.on('logprobs.content.delta', (logprob) => {
1717
console.log(logprob);
1818
});
1919

Diff for: scripts/bootstrap

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ echo "==> Installing Node dependencies…"
1616
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
1717

1818
$PACKAGE_MANAGER install
19+
20+
cd "$(dirname "$0")/../examples"
21+
$PACKAGE_MANAGER install

0 commit comments

Comments
 (0)