modelfusion 0.100.0 → 0.101.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.
Files changed (25) hide show
  1. package/CHANGELOG.md +1411 -0
  2. package/core/api/BaseUrlApiConfiguration.d.ts +7 -6
  3. package/core/api/BaseUrlPartsApiConfiguration.cjs +53 -0
  4. package/core/api/BaseUrlPartsApiConfiguration.d.ts +26 -0
  5. package/core/api/BaseUrlPartsApiConfiguration.js +49 -0
  6. package/core/api/index.cjs +1 -0
  7. package/core/api/index.d.ts +1 -0
  8. package/core/api/index.js +1 -0
  9. package/model-provider/automatic1111/Automatic1111ApiConfiguration.cjs +8 -9
  10. package/model-provider/automatic1111/Automatic1111ApiConfiguration.d.ts +7 -9
  11. package/model-provider/automatic1111/Automatic1111ApiConfiguration.js +8 -9
  12. package/model-provider/automatic1111/Automatic1111Error.cjs +7 -31
  13. package/model-provider/automatic1111/Automatic1111Error.d.ts +2 -11
  14. package/model-provider/automatic1111/Automatic1111Error.js +6 -28
  15. package/model-provider/automatic1111/Automatic1111Facade.cjs +10 -1
  16. package/model-provider/automatic1111/Automatic1111Facade.d.ts +7 -0
  17. package/model-provider/automatic1111/Automatic1111Facade.js +8 -0
  18. package/model-provider/automatic1111/Automatic1111ImageGenerationModel.cjs +22 -27
  19. package/model-provider/automatic1111/Automatic1111ImageGenerationModel.d.ts +8 -8
  20. package/model-provider/automatic1111/Automatic1111ImageGenerationModel.js +22 -27
  21. package/model-provider/automatic1111/index.cjs +1 -3
  22. package/model-provider/automatic1111/index.d.ts +1 -1
  23. package/model-provider/automatic1111/index.js +0 -1
  24. package/model-provider/llamacpp/LlamaCppTextGenerationModel.d.ts +6 -6
  25. package/package.json +15 -15
@@ -65,8 +65,8 @@ export declare class LlamaCppTextGenerationModel<CONTEXT_WINDOW_SIZE extends num
65
65
  generation_settings: {
66
66
  model: string;
67
67
  stream: boolean;
68
- seed: number;
69
68
  mirostat: number;
69
+ seed: number;
70
70
  stop: string[];
71
71
  frequency_penalty: number;
72
72
  ignore_eos: boolean;
@@ -155,8 +155,8 @@ declare const llamaCppTextGenerationResponseSchema: z.ZodObject<{
155
155
  }, "strip", z.ZodTypeAny, {
156
156
  model: string;
157
157
  stream: boolean;
158
- seed: number;
159
158
  mirostat: number;
159
+ seed: number;
160
160
  stop: string[];
161
161
  frequency_penalty: number;
162
162
  ignore_eos: boolean;
@@ -179,8 +179,8 @@ declare const llamaCppTextGenerationResponseSchema: z.ZodObject<{
179
179
  }, {
180
180
  model: string;
181
181
  stream: boolean;
182
- seed: number;
183
182
  mirostat: number;
183
+ seed: number;
184
184
  stop: string[];
185
185
  frequency_penalty: number;
186
186
  ignore_eos: boolean;
@@ -247,8 +247,8 @@ declare const llamaCppTextGenerationResponseSchema: z.ZodObject<{
247
247
  generation_settings: {
248
248
  model: string;
249
249
  stream: boolean;
250
- seed: number;
251
250
  mirostat: number;
251
+ seed: number;
252
252
  stop: string[];
253
253
  frequency_penalty: number;
254
254
  ignore_eos: boolean;
@@ -295,8 +295,8 @@ declare const llamaCppTextGenerationResponseSchema: z.ZodObject<{
295
295
  generation_settings: {
296
296
  model: string;
297
297
  stream: boolean;
298
- seed: number;
299
298
  mirostat: number;
299
+ seed: number;
300
300
  stop: string[];
301
301
  frequency_penalty: number;
302
302
  ignore_eos: boolean;
@@ -360,8 +360,8 @@ export declare const LlamaCppTextGenerationResponseFormat: {
360
360
  generation_settings: {
361
361
  model: string;
362
362
  stream: boolean;
363
- seed: number;
364
363
  mirostat: number;
364
+ seed: number;
365
365
  stop: string[];
366
366
  frequency_penalty: number;
367
367
  ignore_eos: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modelfusion",
3
3
  "description": "The TypeScript library for building multi-modal AI applications.",
4
- "version": "0.100.0",
4
+ "version": "0.101.0",
5
5
  "author": "Lars Grammel",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -30,6 +30,10 @@
30
30
  "engines": {
31
31
  "node": ">=18"
32
32
  },
33
+ "publishConfig": {
34
+ "directory": "dist",
35
+ "linkDirectory": true
36
+ },
33
37
  "files": [
34
38
  "./*"
35
39
  ],
@@ -56,16 +60,17 @@
56
60
  }
57
61
  },
58
62
  "scripts": {
59
- "setup": "husky install",
60
63
  "lint": "eslint --ext .ts src",
61
- "clean": "rimraf build dist",
62
- "build": "npm run build:esm && npm run build:cjs",
64
+ "clean": "rimraf build dist .turbo",
65
+ "build": "pnpm build:esm && pnpm build:cjs && pnpm build:copy-files",
63
66
  "build:esm": "tsc --outDir dist/",
64
67
  "build:cjs": "tsc --outDir build/cjs/ -p tsconfig.cjs.json && node bin/prepare-cjs.js",
68
+ "build:copy-files": "copyfiles --flat package.json ../../README.md ../../LICENSE ../../CHANGELOG.md dist",
65
69
  "test": "vitest --config vitest.config.js --run src",
66
70
  "test:watch": "vitest watch--config vitest.config.js",
67
- "dist": "npm run clean && npm run lint && npm run test && npm run build && npm run dist:copy-files",
68
- "dist:copy-files": "copyfiles package.json README.md LICENSE dist"
71
+ "test:coverage": "vitest run --coverage",
72
+ "test:coverage:ui": "vitest run --coverage --ui",
73
+ "dist": "pnpm clean && pnpm lint && pnpm test && pnpm build"
69
74
  },
70
75
  "dependencies": {
71
76
  "eventsource-parser": "1.1.1",
@@ -74,23 +79,18 @@
74
79
  "secure-json-parse": "2.7.0",
75
80
  "ws": "8.14.2",
76
81
  "zod": "3.22.4",
77
- "zod-to-json-schema": "3.22.1"
82
+ "zod-to-json-schema": "3.22.3"
78
83
  },
79
84
  "devDependencies": {
80
85
  "@types/node": "18.11.9",
81
86
  "@types/ws": "^8.5.7",
82
87
  "@typescript-eslint/eslint-plugin": "^6.1.0",
83
88
  "@typescript-eslint/parser": "^6.1.0",
84
- "copyfiles": "2.4.1",
89
+ "@vitest/coverage-v8": "^1.1.0",
90
+ "@vitest/ui": "1.1.0",
85
91
  "eslint": "^8.45.0",
86
92
  "eslint-config-prettier": "9.0.0",
87
93
  "fastify": "^4.0.0",
88
- "husky": "^8.0.3",
89
- "lint-staged": "15.1.0",
90
- "msw": "2.0.10",
91
- "prettier": "3.1.0",
92
- "rimraf": "5.0.5",
93
- "typescript": "5.2.2",
94
- "vitest": "1.0.4"
94
+ "msw": "2.0.10"
95
95
  }
96
96
  }