@ax-llm/ax 13.0.14 → 13.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -2533,7 +2533,7 @@ type ExtractModelKeysAndValues<T> = T extends readonly {
2533
2533
  type InferTModelKey<T> = T extends {
2534
2534
  models: infer M;
2535
2535
  } ? ExtractModelKeysAndValues<M> : string;
2536
- declare class AxAI<TModelKey = string> implements AxAIService<unknown, unknown, TModelKey> {
2536
+ declare class AxAI<TModelKey = string> implements AxAIService<any, any, TModelKey> {
2537
2537
  private ai;
2538
2538
  static create<const T extends AxAIArgs<any>>(options: T): AxAI<InferTModelKey<T>>;
2539
2539
  constructor(options: Readonly<AxAIArgs<TModelKey>>);
@@ -2544,8 +2544,8 @@ declare class AxAI<TModelKey = string> implements AxAIService<unknown, unknown,
2544
2544
  streaming: boolean;
2545
2545
  };
2546
2546
  getModelList(): AxAIModelList<TModelKey> | undefined;
2547
- getLastUsedChatModel(): unknown;
2548
- getLastUsedEmbedModel(): unknown;
2547
+ getLastUsedChatModel(): any;
2548
+ getLastUsedEmbedModel(): any;
2549
2549
  getLastUsedModelConfig(): AxModelConfig | undefined;
2550
2550
  getMetrics(): AxAIServiceMetrics;
2551
2551
  chat(req: Readonly<AxChatRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
package/index.d.ts CHANGED
@@ -2533,7 +2533,7 @@ type ExtractModelKeysAndValues<T> = T extends readonly {
2533
2533
  type InferTModelKey<T> = T extends {
2534
2534
  models: infer M;
2535
2535
  } ? ExtractModelKeysAndValues<M> : string;
2536
- declare class AxAI<TModelKey = string> implements AxAIService<unknown, unknown, TModelKey> {
2536
+ declare class AxAI<TModelKey = string> implements AxAIService<any, any, TModelKey> {
2537
2537
  private ai;
2538
2538
  static create<const T extends AxAIArgs<any>>(options: T): AxAI<InferTModelKey<T>>;
2539
2539
  constructor(options: Readonly<AxAIArgs<TModelKey>>);
@@ -2544,8 +2544,8 @@ declare class AxAI<TModelKey = string> implements AxAIService<unknown, unknown,
2544
2544
  streaming: boolean;
2545
2545
  };
2546
2546
  getModelList(): AxAIModelList<TModelKey> | undefined;
2547
- getLastUsedChatModel(): unknown;
2548
- getLastUsedEmbedModel(): unknown;
2547
+ getLastUsedChatModel(): any;
2548
+ getLastUsedEmbedModel(): any;
2549
2549
  getLastUsedModelConfig(): AxModelConfig | undefined;
2550
2550
  getMetrics(): AxAIServiceMetrics;
2551
2551
  chat(req: Readonly<AxChatRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;