AxAIChromeAIImpl
Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/api.ts#L462
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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/api.ts#L477
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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/api.ts#L456
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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/api.ts#L495
Parameters
| Parameter | Type |
|---|---|
_resp | never |
Returns
Implementation of
AxAIServiceImpl.createEmbedResp
getModelConfig()
getModelConfig(): AxModelConfig;Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/api.ts#L115
Returns
AxTokenUsage | undefined