modelfusion 0.41.0 → 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.
- package/model-function/generate-text/TextGenerationModel.d.ts +2 -2
- package/model-function/generate-text/generateText.cjs +2 -1
- package/model-function/generate-text/generateText.d.ts +2 -1
- package/model-function/generate-text/generateText.js +2 -1
- package/model-provider/openai/OpenAITranscriptionModel.d.ts +1 -1
- package/package.json +1 -1
- package/retriever/Retriever.d.ts +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
import { FunctionOptions } from "../../core/FunctionOptions.js";
|
2
2
|
import { PromptFormat } from "../../prompt/PromptFormat.js";
|
3
3
|
import { PromptFormatTextGenerationModel } from "../../prompt/PromptFormatTextGenerationModel.js";
|
4
|
+
import { PromptFormatTextStreamingModel } from "../../prompt/PromptFormatTextStreamingModel.js";
|
5
|
+
import { Delta } from "../Delta.js";
|
4
6
|
import { Model, ModelSettings } from "../Model.js";
|
5
7
|
import { BasicTokenizer, FullTokenizer } from "../tokenize-text/Tokenizer.js";
|
6
|
-
import { Delta } from "../Delta.js";
|
7
|
-
import { PromptFormatTextStreamingModel } from "index.js";
|
8
8
|
export interface TextGenerationModelSettings extends ModelSettings {
|
9
9
|
/**
|
10
10
|
* Maximum number of tokens to generate.
|
@@ -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
|
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
|
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
|
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" | "
|
26
|
+
type: "flac" | "m4a" | "mp3" | "mp4" | "mpeg" | "mpga" | "ogg" | "wav" | "webm";
|
27
27
|
data: Buffer;
|
28
28
|
};
|
29
29
|
/**
|
package/package.json
CHANGED
package/retriever/Retriever.d.ts
CHANGED