symposium 2.1.1 → 2.1.3
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.
- package/Symposium.js +2 -2
- package/package.json +1 -1
package/Symposium.js
CHANGED
|
@@ -104,7 +104,7 @@ export default class Symposium {
|
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
return this.transcription_model.class.transcribe(file, model,
|
|
107
|
+
return this.transcription_model.class.transcribe(file, model, this.transcription_model);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
static async embed(input, model = null) {
|
|
@@ -117,7 +117,7 @@ export default class Symposium {
|
|
|
117
117
|
if (!this.embedding_model || this.embedding_model.type !== 'embedding')
|
|
118
118
|
throw new Error('Specified model is not an embedding model');
|
|
119
119
|
|
|
120
|
-
return embedding_model.class.embed(input,
|
|
120
|
+
return this.embedding_model.class.embed(input, this.embedding_model);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
static getExtFromMime(mime) {
|