modelfusion 0.89.1 → 0.90.0
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.
@@ -81,7 +81,10 @@ class OpenAITranscriptionModel extends AbstractModel_js_1.AbstractModel {
|
|
81
81
|
});
|
82
82
|
}
|
83
83
|
get settingsForEvent() {
|
84
|
-
return {
|
84
|
+
return {
|
85
|
+
language: this.settings.language,
|
86
|
+
temperature: this.settings.temperature,
|
87
|
+
};
|
85
88
|
}
|
86
89
|
withSettings(additionalSettings) {
|
87
90
|
return new OpenAITranscriptionModel(Object.assign({}, this.settings, additionalSettings));
|
@@ -20,7 +20,22 @@ export declare const calculateOpenAITranscriptionCostInMillicents: ({ model, res
|
|
20
20
|
}) => number | null;
|
21
21
|
export interface OpenAITranscriptionModelSettings extends TranscriptionModelSettings {
|
22
22
|
api?: ApiConfiguration;
|
23
|
+
/**
|
24
|
+
* ID of the model to use. Only whisper-1 is currently available.
|
25
|
+
*/
|
23
26
|
model: OpenAITranscriptionModelType;
|
27
|
+
/**
|
28
|
+
* The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency.
|
29
|
+
*/
|
30
|
+
language?: string;
|
31
|
+
/**
|
32
|
+
* The sampling temperature, between 0 and 1.
|
33
|
+
* Higher values like 0.8 will make the output more random,
|
34
|
+
* while lower values like 0.2 will make it more focused and deterministic.
|
35
|
+
* If set to 0, the model will use log probability to automatically
|
36
|
+
* increase the temperature until certain thresholds are hit.
|
37
|
+
*/
|
38
|
+
temperature?: number;
|
24
39
|
}
|
25
40
|
export type OpenAITranscriptionInput = {
|
26
41
|
type: "flac" | "m4a" | "mp3" | "mp4" | "mpeg" | "mpga" | "ogg" | "wav" | "webm";
|
@@ -77,7 +77,10 @@ export class OpenAITranscriptionModel extends AbstractModel {
|
|
77
77
|
});
|
78
78
|
}
|
79
79
|
get settingsForEvent() {
|
80
|
-
return {
|
80
|
+
return {
|
81
|
+
language: this.settings.language,
|
82
|
+
temperature: this.settings.temperature,
|
83
|
+
};
|
81
84
|
}
|
82
85
|
withSettings(additionalSettings) {
|
83
86
|
return new OpenAITranscriptionModel(Object.assign({}, this.settings, additionalSettings));
|