@xsai/generate-transcription 0.4.0-beta.5 → 0.4.0-beta.7
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/dist/index.d.ts +6 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ interface GenerateTranscriptionOptions<T1 extends GenerateTranscriptionOptionsRe
|
|
|
7
7
|
prompt?: string;
|
|
8
8
|
/** @default `json` */
|
|
9
9
|
responseFormat?: T1;
|
|
10
|
+
/**
|
|
11
|
+
* If you want to enable stream, use `@xsai/stream-transcription`.
|
|
12
|
+
*/
|
|
13
|
+
stream?: never;
|
|
10
14
|
temperature?: string;
|
|
11
15
|
/** @default `segment` */
|
|
12
16
|
timestampGranularities?: T2;
|
|
@@ -41,4 +45,5 @@ interface GenerateTranscriptionResultWord {
|
|
|
41
45
|
}
|
|
42
46
|
declare const generateTranscription: <T1 extends GenerateTranscriptionOptionsResponseFormat = undefined, T2 extends GenerateTranscriptionOptionsTimeStampGranularities = undefined>(options: GenerateTranscriptionOptions<T1, T2>) => Promise<GenerateTranscriptionResult<T1, T2>>;
|
|
43
47
|
|
|
44
|
-
export {
|
|
48
|
+
export { generateTranscription };
|
|
49
|
+
export type { GenerateTranscriptionOptions, GenerateTranscriptionOptionsResponseFormat, GenerateTranscriptionOptionsTimeStampGranularities, GenerateTranscriptionResult, GenerateTranscriptionResultSegment, GenerateTranscriptionResultWord };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsai/generate-transcription",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.0-beta.
|
|
4
|
+
"version": "0.4.0-beta.7",
|
|
5
5
|
"description": "extra-small AI SDK.",
|
|
6
6
|
"author": "Moeru AI",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xsai/shared": "~0.4.0-beta.
|
|
32
|
+
"@xsai/shared": "~0.4.0-beta.7"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "pkgroll",
|