modelfusion 0.41.1 → 0.41.2

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.
@@ -10,7 +10,8 @@ const executeCall_js_1 = require("../executeCall.cjs");
10
10
  * @example
11
11
  * const model = new OpenAITextGenerationModel(...);
12
12
  *
13
- * const text = await model.generateText(
13
+ * const text = await generateText(
14
+ * model,
14
15
  * "Write a short story about a robot learning to love:\n\n"
15
16
  * );
16
17
  */
@@ -9,7 +9,8 @@ import { TextGenerationModel, TextGenerationModelSettings } from "./TextGenerati
9
9
  * @example
10
10
  * const model = new OpenAITextGenerationModel(...);
11
11
  *
12
- * const text = await model.generateText(
12
+ * const text = await generateText(
13
+ * model,
13
14
  * "Write a short story about a robot learning to love:\n\n"
14
15
  * );
15
16
  */
@@ -7,7 +7,8 @@ import { executeCall } from "../executeCall.js";
7
7
  * @example
8
8
  * const model = new OpenAITextGenerationModel(...);
9
9
  *
10
- * const text = await model.generateText(
10
+ * const text = await generateText(
11
+ * model,
11
12
  * "Write a short story about a robot learning to love:\n\n"
12
13
  * );
13
14
  */
@@ -23,7 +23,7 @@ export interface OpenAITranscriptionModelSettings extends TranscriptionModelSett
23
23
  model: OpenAITranscriptionModelType;
24
24
  }
25
25
  export type OpenAITranscriptionInput = {
26
- type: "mp3" | "mp4" | "mpeg" | "mpga" | "m3a" | "wav" | "webm";
26
+ type: "flac" | "m4a" | "mp3" | "mp4" | "mpeg" | "mpga" | "ogg" | "wav" | "webm";
27
27
  data: Buffer;
28
28
  };
29
29
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modelfusion",
3
3
  "description": "Build multimodal applications, chatbots, and agents with JavaScript and TypeScript.",
4
- "version": "0.41.1",
4
+ "version": "0.41.2",
5
5
  "author": "Lars Grammel",
6
6
  "license": "MIT",
7
7
  "keywords": [