Class: WhisperCppApiConfiguration
Creates an API configuration for the Whisper.cpp server. It calls the API at http://127.0.0.1:8080 by default.
Hierarchy
-
BaseUrlApiConfigurationWithDefaults
↳
WhisperCppApiConfiguration
Constructors
constructor
• new WhisperCppApiConfiguration(settings?
): WhisperCppApiConfiguration
Parameters
Name | Type |
---|---|
settings | PartialBaseUrlPartsApiConfigurationOptions |
Returns
Overrides
BaseUrlApiConfigurationWithDefaults.constructor
Defined in
packages/modelfusion/src/model-provider/whispercpp/WhisperCppApiConfiguration.ts:11
Methods
assembleUrl
▸ assembleUrl(path
): string
Parameters
Name | Type |
---|---|
path | string |
Returns
string
Inherited from
BaseUrlApiConfigurationWithDefaults.assembleUrl
Defined in
packages/modelfusion/src/core/api/BaseUrlApiConfiguration.ts:47
fixedHeaders
▸ fixedHeaders(): Record
<string
, string
>
Returns
Record
<string
, string
>
Inherited from
BaseUrlApiConfigurationWithDefaults.fixedHeaders
Defined in
packages/modelfusion/src/core/api/BaseUrlApiConfiguration.ts:43
headers
▸ headers(params
): Record
<string
, string
>
Parameters
Name | Type |
---|---|
params | HeaderParameters |
Returns
Record
<string
, string
>