@ztimson/ai-utils 0.1.5 → 0.1.7

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/dist/ai.d.ts CHANGED
@@ -5,8 +5,10 @@ export type AiOptions = LLMOptions & {
5
5
  binary: string;
6
6
  /** Model */
7
7
  model: WhisperModel;
8
- /** Working directory for models and temporary files */
8
+ /** Path to models */
9
9
  path: string;
10
+ /** Path to storage location for temporary files */
11
+ temp?: string;
10
12
  };
11
13
  };
12
14
  export type WhisperModel = 'tiny' | 'base' | 'small' | 'medium' | 'large';
@@ -30,7 +32,7 @@ export declare class Ai {
30
32
  * @param {string} model Whisper model that will be downloaded
31
33
  * @return {Promise<void>} A promise that resolves once the model is downloaded and saved locally.
32
34
  */
33
- downloadAsrModel(model: string): Promise<void>;
35
+ downloadAsrModel(): Promise<void>;
34
36
  /**
35
37
  * Convert image to text using Optical Character Recognition
36
38
  * @param {string} path Path to image