Download src/types/node-llama-cpp.d.ts from shimen/shinclaw: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/shimen/shinclaw/resolve/main/src/types/node-llama-cpp.d.ts
- Command line
-
hf download hf://spaces/shimen/shinclaw/src/types/node-llama-cpp.d.ts
-
curl -L -o node-llama-cpp.d.ts https://huggingface.co/spaces/shimen/shinclaw/resolve/main/src/types/node-llama-cpp.d.ts
639 Bytes
| declare module "node-llama-cpp" { | |
| export enum LlamaLogLevel { | |
| error = 0, | |
| } | |
| export type LlamaEmbedding = { vector: Float32Array | number[] }; | |
| export type LlamaEmbeddingContext = { | |
| getEmbeddingFor: (text: string) => Promise<LlamaEmbedding>; | |
| }; | |
| export type LlamaModel = { | |
| createEmbeddingContext: () => Promise<LlamaEmbeddingContext>; | |
| }; | |
| export type Llama = { | |
| loadModel: (params: { modelPath: string }) => Promise<LlamaModel>; | |
| }; | |
| export function getLlama(params: { logLevel: LlamaLogLevel }): Promise<Llama>; | |
| export function resolveModelFile(modelPath: string, cacheDir?: string): Promise<string>; | |
| } | |