@crewdle/mist-connector-openai 1.0.18 → 1.0.19
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.
|
@@ -65,7 +65,9 @@ export class OpenAIGenerativeAIWorkerConnector {
|
|
|
65
65
|
const response = await this.client.audio.transcriptions.create({
|
|
66
66
|
model: options.model.id,
|
|
67
67
|
file,
|
|
68
|
-
response_format: 'json',
|
|
68
|
+
response_format: parameters.responseFormat || 'json',
|
|
69
|
+
language: parameters.language,
|
|
70
|
+
timestamp_granularities: parameters.timestampGranularities ? [parameters.timestampGranularities] : undefined,
|
|
69
71
|
});
|
|
70
72
|
console.log('OpenAIGenerativeAIWorkerConnector.processJob audio transcription response');
|
|
71
73
|
return {
|
|
@@ -204,7 +206,9 @@ export class OpenAIGenerativeAIWorkerConnector {
|
|
|
204
206
|
const stream = await this.client.audio.transcriptions.create({
|
|
205
207
|
model: options.model.id,
|
|
206
208
|
file,
|
|
207
|
-
response_format: 'json',
|
|
209
|
+
response_format: parameters.responseFormat ? parameters.responseFormat : 'json',
|
|
210
|
+
language: parameters.language,
|
|
211
|
+
timestamp_granularities: parameters.timestampGranularities ? [parameters.timestampGranularities] : undefined,
|
|
208
212
|
stream: true,
|
|
209
213
|
});
|
|
210
214
|
console.log('OpenAIGenerativeAIWorkerConnector.processJobStream audio transcription response');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewdle/mist-connector-openai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist/"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@crewdle/web-sdk-types": "^1.0.
|
|
18
|
+
"@crewdle/web-sdk-types": "^1.0.52",
|
|
19
19
|
"@types/node": "^22.13.9",
|
|
20
20
|
"typescript": "^5.8.2"
|
|
21
21
|
},
|