AxAI
Class: AxAI
Implements
Constructors
new AxAI()
new AxAI(
options
):AxAI
Parameters
• options: Readonly
<AxAIArgs
>
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(
model
?):object
Parameters
• model?: string
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