AxAIWebLLM
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/webllm/api.ts#L377
Extends
AxBaseAI<AxAIWebLLMModel,AxAIWebLLMEmbedModel,AxAIWebLLMChatRequest,AxAIWebLLMEmbedRequest,AxAIWebLLMChatResponse,AxAIWebLLMChatResponseDelta,AxAIWebLLMEmbedResponse,TModelKey>
Type Parameters
| Type Parameter |
|---|
TModelKey |
Constructors
Constructor
new AxAIWebLLM<TModelKey>(__namedParameters: Readonly<Omit<AxAIWebLLMArgs<TModelKey>, "name">>): AxAIWebLLM<TModelKey>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/webllm/api.ts#L387
Parameters
| Parameter | Type |
|---|---|
__namedParameters | Readonly<Omit<AxAIWebLLMArgs<TModelKey>, "name">> |
Returns
AxAIWebLLM<TModelKey>
Overrides
Accessors
debug
Get Signature
get debug(): boolean;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L282
Returns
boolean
Inherited from
Methods
chat()
chat(req: Readonly<AxChatRequest<TModel | TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<
| AxChatResponse
| ReadableStream<AxChatResponse>>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L874
Parameters
| Parameter | Type |
|---|---|
req | Readonly<AxChatRequest<TModel | TModelKey>> |
options? | Readonly<AxAIServiceOptions> |
Returns
Promise<
| AxChatResponse
| ReadableStream<AxChatResponse>>
Inherited from
embed()
embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceOptions>): Promise<AxEmbedResponse>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L1390
Parameters
| Parameter | Type |
|---|---|
req | Readonly<AxEmbedRequest<TEmbedModel>> |
options? | Readonly<AxAIServiceOptions> |
Returns
Promise<AxEmbedResponse>
Inherited from
getFeatures()
getFeatures(model?: AxAIWebLLMModel): AxAIFeatures;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L349
Parameters
| Parameter | Type |
|---|---|
model? | AxAIWebLLMModel |
Returns
Inherited from
getId()
getId(): string;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L270
Returns
string
Inherited from
getLastUsedChatModel()
getLastUsedChatModel(): undefined | AxAIWebLLMModel;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L355
Returns
undefined | AxAIWebLLMModel
Inherited from
getLastUsedEmbedModel()
getLastUsedEmbedModel(): undefined;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L359
Returns
undefined
Inherited from
AxBaseAI.getLastUsedEmbedModel
getLastUsedModelConfig()
getLastUsedModelConfig(): undefined | AxModelConfig;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L363
Returns
undefined | AxModelConfig
Inherited from
AxBaseAI.getLastUsedModelConfig
getLogger()
getLogger(): AxLoggerFunction;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L314
Returns
Inherited from
getMetrics()
getMetrics(): AxAIServiceMetrics;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L870
Returns
Inherited from
getModelList()
getModelList(): (
| {
description: string;
embedModel?: undefined;
key: TModelKey;
model: string;
}
| {
description: string;
embedModel: string;
key: TModelKey;
model?: undefined;
})[];
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L318
Returns
(
| {
description: string;
embedModel?: undefined;
key: TModelKey;
model: string;
}
| {
description: string;
embedModel: string;
key: TModelKey;
model?: undefined;
})[]
Inherited from
getName()
getName(): string;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L345
Returns
string
Inherited from
getOptions()
getOptions(): Readonly<AxAIServiceOptions>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L299
Returns
Readonly<AxAIServiceOptions>
Inherited from
setAPIURL()
setAPIURL(apiURL: string): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L274
Parameters
| Parameter | Type |
|---|---|
apiURL | string |
Returns
void
Inherited from
setHeaders()
setHeaders(headers: () => Promise<Record<string, string>>): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L278
Parameters
| Parameter | Type |
|---|---|
headers | () => Promise<Record<string, string>> |
Returns
void
Inherited from
setName()
setName(name: string): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L266
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
void
Inherited from
setOptions()
setOptions(options: Readonly<AxAIServiceOptions>): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/base.ts#L286
Parameters
| Parameter | Type |
|---|---|
options | Readonly<AxAIServiceOptions> |
Returns
void