symposium 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Symposium.js +3 -3
  2. package/package.json +1 -1
package/Symposium.js CHANGED
@@ -35,13 +35,13 @@ export default class Symposium {
35
35
  }
36
36
 
37
37
  static async transcribe(agent, file, thread) {
38
- let words = await agent.getPromptWordsForTranscription(thread);
38
+ const words = await agent.getPromptWordsForTranscription(thread);
39
39
 
40
- let response = await this.openai.audio.transcriptions.create({
40
+ const response = await this.getOpenAi().then(openai => openai.audio.transcriptions.create({
41
41
  file,
42
42
  model: 'whisper-1',
43
43
  prompt: words.join(', '),
44
- });
44
+ }));
45
45
  return response.text;
46
46
  }
47
47
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",