Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Dec 20, 2024
1 parent c85d9e6 commit 3c7a7ba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 224 deletions.
4 changes: 2 additions & 2 deletions examples/audio.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env -S npm run tsn -T
import 'openai/shims/node';

import OpenAI, { toFile } from 'openai';
import fs from 'fs';
Expand All @@ -23,9 +22,10 @@ async function streamingDemoNode() {
input: 'the quick brown chicken jumped over the lazy dogs',
});

const stream = response.body;
const stream = response.body!;

console.log(`Streaming response to ${speechFile}`);
// @ts-ignore
await streamToFile(stream, speechFile);
console.log('Finished streaming');
}
Expand Down
112 changes: 0 additions & 112 deletions examples/function-call-helpers-zod.ts

This file was deleted.

110 changes: 0 additions & 110 deletions examples/function-call-helpers.ts

This file was deleted.

0 comments on commit 3c7a7ba

Please sign in to comment.