@shenghuabi/llama 1.0.0
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/define/common.define.d.ts +534 -0
- package/define/example-specific.define.d.ts +412 -0
- package/define/index.d.ts +2378 -0
- package/define/index.js +2403 -0
- package/define/index.js.map +7 -0
- package/define/index.mjs +2361 -0
- package/define/index.mjs.map +7 -0
- package/define/llama-server.define.d.ts +2347 -0
- package/define/llama-swap.define.d.ts +12 -0
- package/define/sampling.define.d.ts +218 -0
- package/download/auto-check-vendor.d.ts +4 -0
- package/download/get-gguf-file.d.ts +9 -0
- package/download/get-model-manifest.d.ts +18 -0
- package/download/get-ollama-gguf-file.d.ts +7 -0
- package/index.d.ts +3 -0
- package/index.js +3077 -0
- package/index.js.map +7 -0
- package/index.mjs +3035 -0
- package/index.mjs.map +7 -0
- package/llama-swap.service.d.ts +1029 -0
- package/ollama-model/manifest.type.d.ts +11 -0
- package/ollama-model/ollama-manifests.d.ts +4 -0
- package/package.json +43 -0
- package/token.d.ts +10 -0
- package/util/file-name-by-version.d.ts +2 -0
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shenghuabi/llama",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "llama/ollama",
|
|
5
|
+
"author": "wszgrcy",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"type": "module",
|
|
8
|
+
"peerDependencies": {
|
|
9
|
+
"@cyia/external-call": "^1.5.2",
|
|
10
|
+
"@cyia/vfs2": "^1.5.2",
|
|
11
|
+
"@cyia/zip": "^1.5.2",
|
|
12
|
+
"execa": "^9.6.0",
|
|
13
|
+
"static-injector": ">=6.1.2",
|
|
14
|
+
"valibot": "^1.1.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"normalize-path": "^3.0.0",
|
|
18
|
+
"magic-string": "^0.30.18",
|
|
19
|
+
"yaml": "^2.8.0",
|
|
20
|
+
"semver": "^7.7.2"
|
|
21
|
+
},
|
|
22
|
+
"overrides": {},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"import": "./index.mjs",
|
|
27
|
+
"node": "./index.js",
|
|
28
|
+
"require": "./index.js"
|
|
29
|
+
},
|
|
30
|
+
"./define": {
|
|
31
|
+
"types": "./define/index.d.ts",
|
|
32
|
+
"import": "./define/index.mjs",
|
|
33
|
+
"node": "./define/index.js",
|
|
34
|
+
"require": "./define/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"url": "https://github.com/wszgrcy/toolkit"
|
|
42
|
+
}
|
|
43
|
+
}
|
package/token.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionToken, Signal } from 'static-injector';
|
|
2
|
+
export interface LLamaConfig {
|
|
3
|
+
dir: string;
|
|
4
|
+
listen: string;
|
|
5
|
+
useRelConfigPath?: boolean;
|
|
6
|
+
/** 配合相对路径使用 */
|
|
7
|
+
cwd?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const LLamaConfigToken: InjectionToken<Signal<LLamaConfig>>;
|
|
10
|
+
export declare const OLLAMA_MODEL_URL_TOKEN: InjectionToken<Signal<string>>;
|