AxBalancer
Class: AxBalancer
Implements
Constructors
new AxBalancer()
new AxBalancer(
services
):AxBalancer
Parameters
• services: readonly AxAIService
[]
Returns
Defined in
Methods
chat()
chat(
req
,options
?):Promise
<AxChatResponse
|ReadableStream
<AxChatResponse
>>
Parameters
• req: Readonly
<AxChatRequest
>
• options?: Readonly
<AxAIPromptConfig
& AxAIServiceActionOptions
>
Returns
Promise
<AxChatResponse
| ReadableStream
<AxChatResponse
>>
Implementation of
Defined in
embed()
embed(
req
,options
?):Promise
<AxEmbedResponse
>
Parameters
• req: Readonly
<AxEmbedRequest
>
• options?: Readonly
<AxAIServiceActionOptions
>
Returns
Promise
<AxEmbedResponse
>
Implementation of
Defined in
getEmbedModelInfo()
getEmbedModelInfo():
undefined
|Readonly
<AxModelInfoWithProvider
>
Returns
undefined
| Readonly
<AxModelInfoWithProvider
>
Implementation of
Defined in
getFeatures()
getFeatures():
object
Returns
object
functions
functions:
boolean
streaming
streaming:
boolean
Implementation of
Defined in
getModelConfig()
getModelConfig():
Readonly
<AxModelConfig
>
Returns
Readonly
<AxModelConfig
>
Implementation of
Defined in
getModelInfo()
getModelInfo():
Readonly
<AxModelInfoWithProvider
>
Returns
Readonly
<AxModelInfoWithProvider
>
Implementation of
Defined in
getModelMap()
getModelMap():
undefined
|AxAIModelMap
Returns
undefined
| AxAIModelMap
Implementation of
Defined in
getName()
getName():
string
Returns
string
Implementation of
Defined in
setOptions()
setOptions(
options
):void
Parameters
• options: Readonly
<AxAIServiceOptions
>
Returns
void