AxAIService
Interface: AxAIService
Methods
chat()
chat(
req
,options
?):Promise
<AxChatResponse
|ReadableStream
<AxChatResponse
>>
Parameters
• req: Readonly
<AxChatRequest
>
• options?: Readonly
<AxAIPromptConfig
& AxAIServiceActionOptions
>
Returns
Promise
<AxChatResponse
| ReadableStream
<AxChatResponse
>>
Defined in
embed()
embed(
req
,options
?):Promise
<AxEmbedResponse
>
Parameters
• req: Readonly
<AxEmbedRequest
>
• options?: Readonly
<AxAIServiceActionOptions
>
Returns
Promise
<AxEmbedResponse
>
Defined in
getEmbedModelInfo()
getEmbedModelInfo():
undefined
|Readonly
<AxModelInfoWithProvider
>
Returns
undefined
| Readonly
<AxModelInfoWithProvider
>
Defined in
getFeatures()
getFeatures():
object
Returns
object
functions
functions:
boolean
streaming
streaming:
boolean
Defined in
getModelConfig()
getModelConfig():
Readonly
<AxModelConfig
>
Returns
Readonly
<AxModelConfig
>
Defined in
getModelInfo()
getModelInfo():
Readonly
<AxModelInfoWithProvider
>
Returns
Readonly
<AxModelInfoWithProvider
>
Defined in
getModelMap()
getModelMap():
undefined
|AxAIModelMap
Returns
undefined
| AxAIModelMap
Defined in
getName()
getName():
string
Returns
string
Defined in
setOptions()
setOptions(
options
):void
Parameters
• options: Readonly
<AxAIServiceOptions
>
Returns
void