Skip to content

Commit

Permalink
fix: install examples deps as part of bootstrap script (#1022)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel El-Borai <sam@elborai.me>
  • Loading branch information
stainless-app[bot] and dgellow authored Aug 29, 2024
1 parent d9acd0a commit eae8e36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
with:
node-version: '18'

- name: Install dependencies
run: yarn install
- name: Bootstrap
run: ./scripts/bootstrap

- name: Check types
run: ./scripts/lint
Expand All @@ -41,8 +41,8 @@ jobs:
with:
node-version: '18'

- name: Install dependencies
run: yarn install
- name: Bootstrap
run: ./scripts/bootstrap

- name: Check build
run: ./scripts/build
Expand Down
2 changes: 1 addition & 1 deletion examples/logprobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main() {
stream: true,
logprobs: true,
})
.on('logprob', (logprob) => {
.on('logprobs.content.delta', (logprob) => {
console.log(logprob);
});

Expand Down
3 changes: 3 additions & 0 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ echo "==> Installing Node dependencies…"
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")

$PACKAGE_MANAGER install

cd "$(dirname "$0")/../examples"
$PACKAGE_MANAGER install

0 comments on commit eae8e36

Please sign in to comment.