Interface: TranscriptionModel<SETTINGS>
Type parameters
Name | Type |
---|---|
SETTINGS | extends TranscriptionModelSettings = TranscriptionModelSettings |
Hierarchy
-
Model
<SETTINGS
>↳
TranscriptionModel
Implemented by
Accessors
settingsForEvent
• get
settingsForEvent(): Partial
<SETTINGS
>
Returns settings that should be recorded in observability events. Security-related settings (e.g. API keys) should not be included here.
Returns
Partial
<SETTINGS
>
Inherited from
Model.settingsForEvent
Defined in
packages/modelfusion/src/model-function/Model.ts:19
Methods
withSettings
▸ withSettings(additionalSettings
): this
The withSettings
method creates a new model with the same configuration as the original model, but with the specified settings changed.
Parameters
Name | Type |
---|---|
additionalSettings | Partial <SETTINGS > |
Returns
this
Example
const model = new OpenAICompletionModel({
model: "gpt-3.5-turbo-instruct",
maxGenerationTokens: 500,
});
const modelWithMoreTokens = model.withSettings({
maxGenerationTokens: 1000,
});
Inherited from
Defined in
packages/modelfusion/src/model-function/Model.ts:34
Properties
doTranscribe
• doTranscribe: (input
: { audioData
: DataContent
; mimeType
: string
}, options
: FunctionCallOptions
) => PromiseLike
<{ rawResponse
: unknown
; transcription
: string
}>
Type declaration
▸ (input
, options
): PromiseLike
<{ rawResponse
: unknown
; transcription
: string
}>
Parameters
Name | Type |
---|---|
input | Object |
input.audioData | DataContent |
input.mimeType | string |
options | FunctionCallOptions |
Returns
PromiseLike
<{ rawResponse
: unknown
; transcription
: string
}>
Defined in
packages/modelfusion/src/model-function/generate-transcription/TranscriptionModel.ts:10
modelInformation
• modelInformation: ModelInformation
Inherited from
Defined in
packages/modelfusion/src/model-function/Model.ts:12
settings
• Readonly
settings: SETTINGS