AxAIChromeAIImpl
Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L93
Implements
AxAIServiceImpl<AxAIChromeAIModelId,AxAIChromeAIEmbedModel,AxAIChromeAIChatRequest,AxAIChromeAIEmbedRequest,AxAIChromeAIChatResponse,AxAIChromeAIChatResponseDelta,AxAIChromeAIEmbedResponse>
Constructors
Constructor
new AxAIChromeAIImpl(config: AxAIChromeAIConfig, languageModel?: ChromeAILanguageModel): AxAIChromeAIImpl;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L108
Parameters
| Parameter | Type |
|---|---|
config | AxAIChromeAIConfig |
languageModel? | ChromeAILanguageModel |
Returns
AxAIChromeAIImpl
Methods
createChatReq()
createChatReq(req: Readonly<AxInternalChatRequest<AxAIChromeAIModelId>>, options?: Readonly<AxAIServiceOptions>): [AxAPI, AxAIChromeAIChatRequest];Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L129
Parameters
| Parameter | Type |
|---|---|
req | Readonly<AxInternalChatRequest<AxAIChromeAIModelId>> |
options? | Readonly<AxAIServiceOptions> |
Returns
[AxAPI, AxAIChromeAIChatRequest]
Implementation of
createChatResp()
createChatResp(resp: Readonly<AxAIChromeAIChatResponse>): AxChatResponse;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L467
Parameters
| Parameter | Type |
|---|---|
resp | Readonly<AxAIChromeAIChatResponse> |
Returns
Implementation of
AxAIServiceImpl.createChatResp
createChatStreamResp()
createChatStreamResp(resp: Readonly<AxAIChromeAIChatResponseDelta>, _state: object): AxChatResponse;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L482
Parameters
| Parameter | Type |
|---|---|
resp | Readonly<AxAIChromeAIChatResponseDelta> |
_state | object |
Returns
Implementation of
AxAIServiceImpl.createChatStreamResp
createEmbedReq()
createEmbedReq(_req: Readonly<AxInternalEmbedRequest<AxAIChromeAIEmbedModel>>): [AxAPI, never];Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L461
Parameters
| Parameter | Type |
|---|---|
_req | Readonly<AxInternalEmbedRequest<AxAIChromeAIEmbedModel>> |
Returns
[AxAPI, never]
Implementation of
AxAIServiceImpl.createEmbedReq
createEmbedResp()
createEmbedResp(_resp: never): AxEmbedResponse;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L500
Parameters
| Parameter | Type |
|---|---|
_resp | never |
Returns
Implementation of
AxAIServiceImpl.createEmbedResp
getModelConfig()
getModelConfig(): AxModelConfig;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L119
Returns
Implementation of
AxAIServiceImpl.getModelConfig
getTokenUsage()
getTokenUsage(): AxTokenUsage | undefined;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/chrome-ai/api.ts#L115
Returns
AxTokenUsage | undefined