Skip to content

Commit

Permalink
Remove polyfills, update AAI SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger committed Oct 30, 2023
1 parent ad32da0 commit a7f32b4
Show file tree
Hide file tree
Showing 69 changed files with 40 additions and 1,402 deletions.
748 changes: 13 additions & 735 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/qs-npm-6.11.2-b118bc1c6f-8a38f19549.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/url-npm-0.11.3-d3652df78a-74f444140c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
"execa": "^8.0.1",
"rollup-plugin-visualizer": "^5.9.2",
"semver": "^7.5.4",
"tsx": "^3.14.0",
"vite-plugin-node-polyfills": "^0.15.0"
"tsx": "^3.14.0"
}
}
4 changes: 0 additions & 4 deletions packages/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import topLevelAwait from 'vite-plugin-top-level-await';
import { resolve } from 'node:path';
import { visualizer } from 'rollup-plugin-visualizer';
import { splitVendorChunkPlugin } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down Expand Up @@ -47,8 +46,5 @@ export default defineConfig({
(monacoEditorPlugin as any).default({}),
topLevelAwait(),
splitVendorChunkPlugin(),
nodePolyfills({
include: ['fs', 'stream', '_stream_writable', 'buffer', 'events']
}),
],
});
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@gentrace/core": "^2.2.5",
"@huggingface/inference": "^2.6.4",
"assemblyai": "^3.0.0",
"assemblyai": "^3.0.1",
"autoevals": "^0.0.26",
"crypto-js": "^4.1.1",
"emittery": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/assemblyAi/LemurTaskNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const LemurTaskNodeImpl: PluginNodeImpl<LemurTaskNode> = {

async process(data, inputs: Inputs, context: InternalProcessContext): Promise<Outputs> {
const apiKey = getApiKey(context);
const client = new AssemblyAI(apiKey);
const client = new AssemblyAI({ apiKey });
const params: LemurTaskParameters = {
prompt: coerceTypeOptional(inputs['prompt' as PortId], 'string') || data.prompt || '',
...getLemurParams(inputs, data),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const TranscribeAudioNodeImpl: PluginNodeImpl<TranscribeAudioNode> = {
return {
['text' as PortId]: {
type: 'string',
value: transcript.text,
value: transcript.text as string,
},
['id' as PortId]: {
type: 'string',
Expand Down
Loading

0 comments on commit a7f32b4

Please sign in to comment.