inference-server
Version:
Libraries and server to build AI applications. Adapters to various native bindings allowing local inference. Integrate it with your application, or use as a microservice.
13 lines (12 loc) • 491 B
TypeScript
/**
* Determines the appropriate cache directory for the current platform.
*
* Follows platform-specific conventions:
* - Windows: %LOCALAPPDATA%\Cache\inference-server
* - macOS: ~/Library/Caches/inference-server
* - Linux: $XDG_CACHE_HOME/inference-server or ~/.cache/inference-server
*
* @param {string} subDir - The name of the cache subdirectory
* @returns {string} The absolute path to the cache directory
*/
export declare function getCacheDirPath(subDir?: string): string;