Spaces:
Sleeping
Sleeping
Commit
•
c391561
1
Parent(s):
19a1e16
upgrade Replicate client version, allow using Flux.1
Browse files- .nvmrc +1 -1
- package-lock.json +98 -82
- package.json +3 -3
- src/app/engine/render.ts +6 -5
- src/app/interface/about/index.tsx +2 -2
.nvmrc
CHANGED
@@ -1 +1 @@
|
|
1 |
-
v20.
|
|
|
1 |
+
v20.15.1
|
package-lock.json
CHANGED
@@ -9,9 +9,9 @@
|
|
9 |
"version": "1.2.2",
|
10 |
"dependencies": {
|
11 |
"@aitube/clap": "0.1.2",
|
12 |
-
"@anthropic-ai/sdk": "^0.
|
13 |
"@huggingface/hub": "^0.15.1",
|
14 |
-
"@huggingface/inference": "^2.
|
15 |
"@mediapipe/tasks-vision": "^0.10.14",
|
16 |
"@radix-ui/react-accordion": "^1.1.2",
|
17 |
"@radix-ui/react-avatar": "^1.0.3",
|
@@ -63,7 +63,7 @@
|
|
63 |
"react-icons": "^4.11.0",
|
64 |
"react-konva": "^18.2.10",
|
65 |
"react-virtualized-auto-sizer": "^1.0.20",
|
66 |
-
"replicate": "^0.
|
67 |
"sbd": "^1.0.19",
|
68 |
"sharp": "^0.33.4",
|
69 |
"tailwind-merge": "^2.2.2",
|
@@ -106,9 +106,9 @@
|
|
106 |
}
|
107 |
},
|
108 |
"node_modules/@anthropic-ai/sdk": {
|
109 |
-
"version": "0.
|
110 |
-
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.
|
111 |
-
"integrity": "sha512-
|
112 |
"dependencies": {
|
113 |
"@types/node": "^18.11.18",
|
114 |
"@types/node-fetch": "^2.6.4",
|
@@ -116,22 +116,21 @@
|
|
116 |
"agentkeepalive": "^4.2.1",
|
117 |
"form-data-encoder": "1.7.2",
|
118 |
"formdata-node": "^4.3.2",
|
119 |
-
"node-fetch": "^2.6.7"
|
120 |
-
"web-streams-polyfill": "^3.2.1"
|
121 |
}
|
122 |
},
|
123 |
"node_modules/@anthropic-ai/sdk/node_modules/@types/node": {
|
124 |
-
"version": "18.19.
|
125 |
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
126 |
-
"integrity": "sha512-
|
127 |
"dependencies": {
|
128 |
"undici-types": "~5.26.4"
|
129 |
}
|
130 |
},
|
131 |
"node_modules/@babel/runtime": {
|
132 |
-
"version": "7.
|
133 |
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.
|
134 |
-
"integrity": "sha512-
|
135 |
"dependencies": {
|
136 |
"regenerator-runtime": "^0.14.0"
|
137 |
},
|
@@ -221,20 +220,20 @@
|
|
221 |
}
|
222 |
},
|
223 |
"node_modules/@floating-ui/core": {
|
224 |
-
"version": "1.6.
|
225 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.
|
226 |
-
"integrity": "sha512-
|
227 |
"dependencies": {
|
228 |
-
"@floating-ui/utils": "^0.2.
|
229 |
}
|
230 |
},
|
231 |
"node_modules/@floating-ui/dom": {
|
232 |
-
"version": "1.6.
|
233 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.
|
234 |
-
"integrity": "sha512-
|
235 |
"dependencies": {
|
236 |
"@floating-ui/core": "^1.6.0",
|
237 |
-
"@floating-ui/utils": "^0.2.
|
238 |
}
|
239 |
},
|
240 |
"node_modules/@floating-ui/react-dom": {
|
@@ -250,9 +249,9 @@
|
|
250 |
}
|
251 |
},
|
252 |
"node_modules/@floating-ui/utils": {
|
253 |
-
"version": "0.2.
|
254 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.
|
255 |
-
"integrity": "sha512-
|
256 |
},
|
257 |
"node_modules/@huggingface/hub": {
|
258 |
"version": "0.15.1",
|
@@ -278,9 +277,9 @@
|
|
278 |
}
|
279 |
},
|
280 |
"node_modules/@huggingface/inference/node_modules/@huggingface/tasks": {
|
281 |
-
"version": "0.11.
|
282 |
-
"resolved": "https://registry.npmjs.org/@huggingface/tasks/-/tasks-0.11.
|
283 |
-
"integrity": "sha512-
|
284 |
},
|
285 |
"node_modules/@huggingface/tasks": {
|
286 |
"version": "0.10.22",
|
@@ -2552,9 +2551,9 @@
|
|
2552 |
"integrity": "sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg=="
|
2553 |
},
|
2554 |
"node_modules/@rushstack/eslint-patch": {
|
2555 |
-
"version": "1.10.
|
2556 |
-
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.
|
2557 |
-
"integrity": "sha512-
|
2558 |
},
|
2559 |
"node_modules/@swc/counter": {
|
2560 |
"version": "0.1.3",
|
@@ -3113,9 +3112,9 @@
|
|
3113 |
}
|
3114 |
},
|
3115 |
"node_modules/axe-core": {
|
3116 |
-
"version": "4.
|
3117 |
-
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.
|
3118 |
-
"integrity": "sha512-
|
3119 |
"engines": {
|
3120 |
"node": ">=4"
|
3121 |
}
|
@@ -3198,9 +3197,9 @@
|
|
3198 |
}
|
3199 |
},
|
3200 |
"node_modules/browserslist": {
|
3201 |
-
"version": "4.23.
|
3202 |
-
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.
|
3203 |
-
"integrity": "sha512-
|
3204 |
"funding": [
|
3205 |
{
|
3206 |
"type": "opencollective",
|
@@ -3216,9 +3215,9 @@
|
|
3216 |
}
|
3217 |
],
|
3218 |
"dependencies": {
|
3219 |
-
"caniuse-lite": "^1.0.
|
3220 |
-
"electron-to-chromium": "^1.4
|
3221 |
-
"node-releases": "^2.0.
|
3222 |
"update-browserslist-db": "^1.1.0"
|
3223 |
},
|
3224 |
"bin": {
|
@@ -3298,9 +3297,9 @@
|
|
3298 |
}
|
3299 |
},
|
3300 |
"node_modules/caniuse-lite": {
|
3301 |
-
"version": "1.0.
|
3302 |
-
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.
|
3303 |
-
"integrity": "sha512-
|
3304 |
"funding": [
|
3305 |
{
|
3306 |
"type": "opencollective",
|
@@ -3858,9 +3857,9 @@
|
|
3858 |
}
|
3859 |
},
|
3860 |
"node_modules/debug": {
|
3861 |
-
"version": "4.3.
|
3862 |
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
3863 |
-
"integrity": "sha512-
|
3864 |
"dependencies": {
|
3865 |
"ms": "2.1.2"
|
3866 |
},
|
@@ -4084,9 +4083,9 @@
|
|
4084 |
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
|
4085 |
},
|
4086 |
"node_modules/electron-to-chromium": {
|
4087 |
-
"version": "1.5.
|
4088 |
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.
|
4089 |
-
"integrity": "sha512-
|
4090 |
},
|
4091 |
"node_modules/emoji-regex": {
|
4092 |
"version": "9.2.2",
|
@@ -4895,14 +4894,6 @@
|
|
4895 |
"node": ">= 12.20"
|
4896 |
}
|
4897 |
},
|
4898 |
-
"node_modules/formdata-node/node_modules/web-streams-polyfill": {
|
4899 |
-
"version": "4.0.0-beta.3",
|
4900 |
-
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
|
4901 |
-
"integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
|
4902 |
-
"engines": {
|
4903 |
-
"node": ">= 14"
|
4904 |
-
}
|
4905 |
-
},
|
4906 |
"node_modules/fraction.js": {
|
4907 |
"version": "4.3.7",
|
4908 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
|
@@ -5136,13 +5127,21 @@
|
|
5136 |
}
|
5137 |
},
|
5138 |
"node_modules/groq-sdk/node_modules/@types/node": {
|
5139 |
-
"version": "18.19.
|
5140 |
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
5141 |
-
"integrity": "sha512-
|
5142 |
"dependencies": {
|
5143 |
"undici-types": "~5.26.4"
|
5144 |
}
|
5145 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5146 |
"node_modules/has-bigints": {
|
5147 |
"version": "1.0.2",
|
5148 |
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
|
@@ -6289,6 +6288,13 @@
|
|
6289 |
"which",
|
6290 |
"write-file-atomic"
|
6291 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6292 |
"dependencies": {
|
6293 |
"@isaacs/string-locale-compare": "^1.1.0",
|
6294 |
"@npmcli/arborist": "^7.5.4",
|
@@ -8700,9 +8706,9 @@
|
|
8700 |
}
|
8701 |
},
|
8702 |
"node_modules/openai": {
|
8703 |
-
"version": "4.
|
8704 |
-
"resolved": "https://registry.npmjs.org/openai/-/openai-4.
|
8705 |
-
"integrity": "sha512-
|
8706 |
"dependencies": {
|
8707 |
"@types/node": "^18.11.18",
|
8708 |
"@types/node-fetch": "^2.6.4",
|
@@ -8710,17 +8716,24 @@
|
|
8710 |
"agentkeepalive": "^4.2.1",
|
8711 |
"form-data-encoder": "1.7.2",
|
8712 |
"formdata-node": "^4.3.2",
|
8713 |
-
"node-fetch": "^2.6.7"
|
8714 |
-
"web-streams-polyfill": "^3.2.1"
|
8715 |
},
|
8716 |
"bin": {
|
8717 |
"openai": "bin/cli"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8718 |
}
|
8719 |
},
|
8720 |
"node_modules/openai/node_modules/@types/node": {
|
8721 |
-
"version": "18.19.
|
8722 |
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
8723 |
-
"integrity": "sha512-
|
8724 |
"dependencies": {
|
8725 |
"undici-types": "~5.26.4"
|
8726 |
}
|
@@ -9417,9 +9430,9 @@
|
|
9417 |
}
|
9418 |
},
|
9419 |
"node_modules/replicate": {
|
9420 |
-
"version": "0.
|
9421 |
-
"resolved": "https://registry.npmjs.org/replicate/-/replicate-0.
|
9422 |
-
"integrity": "sha512-
|
9423 |
"engines": {
|
9424 |
"git": ">=2.11.0",
|
9425 |
"node": ">=18.0.0",
|
@@ -10504,6 +10517,9 @@
|
|
10504 |
"version": "2.9.1",
|
10505 |
"resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.9.1.tgz",
|
10506 |
"integrity": "sha512-2FAuSIGHlY+apM9FVlj8/oNhd+1y+Uwv5QNkMQz1oSfdHk4PXo1qoCw9I5M7j0vpH8CSWFJwXbVPeYDjLCx9PA==",
|
|
|
|
|
|
|
10507 |
"engines": {
|
10508 |
"node": ">=16.15.0",
|
10509 |
"npm": ">=8"
|
@@ -10544,11 +10560,11 @@
|
|
10544 |
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="
|
10545 |
},
|
10546 |
"node_modules/web-streams-polyfill": {
|
10547 |
-
"version": "
|
10548 |
-
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-
|
10549 |
-
"integrity": "sha512-
|
10550 |
"engines": {
|
10551 |
-
"node": ">=
|
10552 |
}
|
10553 |
},
|
10554 |
"node_modules/webidl-conversions": {
|
@@ -10595,12 +10611,12 @@
|
|
10595 |
}
|
10596 |
},
|
10597 |
"node_modules/which-builtin-type": {
|
10598 |
-
"version": "1.1.
|
10599 |
-
"resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.
|
10600 |
-
"integrity": "sha512-
|
10601 |
"dependencies": {
|
10602 |
-
"function.prototype.name": "^1.1.
|
10603 |
-
"has-tostringtag": "^1.0.
|
10604 |
"is-async-function": "^2.0.0",
|
10605 |
"is-date-object": "^1.0.5",
|
10606 |
"is-finalizationregistry": "^1.0.2",
|
@@ -10609,8 +10625,8 @@
|
|
10609 |
"is-weakref": "^1.0.2",
|
10610 |
"isarray": "^2.0.5",
|
10611 |
"which-boxed-primitive": "^1.0.2",
|
10612 |
-
"which-collection": "^1.0.
|
10613 |
-
"which-typed-array": "^1.1.
|
10614 |
},
|
10615 |
"engines": {
|
10616 |
"node": ">= 0.4"
|
|
|
9 |
"version": "1.2.2",
|
10 |
"dependencies": {
|
11 |
"@aitube/clap": "0.1.2",
|
12 |
+
"@anthropic-ai/sdk": "^0.25.0",
|
13 |
"@huggingface/hub": "^0.15.1",
|
14 |
+
"@huggingface/inference": "^2.0.0",
|
15 |
"@mediapipe/tasks-vision": "^0.10.14",
|
16 |
"@radix-ui/react-accordion": "^1.1.2",
|
17 |
"@radix-ui/react-avatar": "^1.0.3",
|
|
|
63 |
"react-icons": "^4.11.0",
|
64 |
"react-konva": "^18.2.10",
|
65 |
"react-virtualized-auto-sizer": "^1.0.20",
|
66 |
+
"replicate": "^0.32.0",
|
67 |
"sbd": "^1.0.19",
|
68 |
"sharp": "^0.33.4",
|
69 |
"tailwind-merge": "^2.2.2",
|
|
|
106 |
}
|
107 |
},
|
108 |
"node_modules/@anthropic-ai/sdk": {
|
109 |
+
"version": "0.25.0",
|
110 |
+
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.25.0.tgz",
|
111 |
+
"integrity": "sha512-nill47zLtX+Tx6YacvuML1WMA7vuFA+I2uGh+8mGig4D3HwKFLThf45cS1itcmYVnjUQ+ohrSnkRyu1t+Xbh2w==",
|
112 |
"dependencies": {
|
113 |
"@types/node": "^18.11.18",
|
114 |
"@types/node-fetch": "^2.6.4",
|
|
|
116 |
"agentkeepalive": "^4.2.1",
|
117 |
"form-data-encoder": "1.7.2",
|
118 |
"formdata-node": "^4.3.2",
|
119 |
+
"node-fetch": "^2.6.7"
|
|
|
120 |
}
|
121 |
},
|
122 |
"node_modules/@anthropic-ai/sdk/node_modules/@types/node": {
|
123 |
+
"version": "18.19.43",
|
124 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.43.tgz",
|
125 |
+
"integrity": "sha512-Mw/YlgXnyJdEwLoFv2dpuJaDFriX+Pc+0qOBJ57jC1H6cDxIj2xc5yUrdtArDVG0m+KV6622a4p2tenEqB3C/g==",
|
126 |
"dependencies": {
|
127 |
"undici-types": "~5.26.4"
|
128 |
}
|
129 |
},
|
130 |
"node_modules/@babel/runtime": {
|
131 |
+
"version": "7.25.0",
|
132 |
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz",
|
133 |
+
"integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==",
|
134 |
"dependencies": {
|
135 |
"regenerator-runtime": "^0.14.0"
|
136 |
},
|
|
|
220 |
}
|
221 |
},
|
222 |
"node_modules/@floating-ui/core": {
|
223 |
+
"version": "1.6.7",
|
224 |
+
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.7.tgz",
|
225 |
+
"integrity": "sha512-yDzVT/Lm101nQ5TCVeK65LtdN7Tj4Qpr9RTXJ2vPFLqtLxwOrpoxAHAJI8J3yYWUc40J0BDBheaitK5SJmno2g==",
|
226 |
"dependencies": {
|
227 |
+
"@floating-ui/utils": "^0.2.7"
|
228 |
}
|
229 |
},
|
230 |
"node_modules/@floating-ui/dom": {
|
231 |
+
"version": "1.6.10",
|
232 |
+
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.10.tgz",
|
233 |
+
"integrity": "sha512-fskgCFv8J8OamCmyun8MfjB1Olfn+uZKjOKZ0vhYF3gRmEUXcGOjxWL8bBr7i4kIuPZ2KD2S3EUIOxnjC8kl2A==",
|
234 |
"dependencies": {
|
235 |
"@floating-ui/core": "^1.6.0",
|
236 |
+
"@floating-ui/utils": "^0.2.7"
|
237 |
}
|
238 |
},
|
239 |
"node_modules/@floating-ui/react-dom": {
|
|
|
249 |
}
|
250 |
},
|
251 |
"node_modules/@floating-ui/utils": {
|
252 |
+
"version": "0.2.7",
|
253 |
+
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.7.tgz",
|
254 |
+
"integrity": "sha512-X8R8Oj771YRl/w+c1HqAC1szL8zWQRwFvgDwT129k9ACdBoud/+/rX9V0qiMl6LWUdP9voC2nDVZYPMQQsb6eA=="
|
255 |
},
|
256 |
"node_modules/@huggingface/hub": {
|
257 |
"version": "0.15.1",
|
|
|
277 |
}
|
278 |
},
|
279 |
"node_modules/@huggingface/inference/node_modules/@huggingface/tasks": {
|
280 |
+
"version": "0.11.7",
|
281 |
+
"resolved": "https://registry.npmjs.org/@huggingface/tasks/-/tasks-0.11.7.tgz",
|
282 |
+
"integrity": "sha512-CdRLfHKU0kA11jsyU0hpHYuUCs92OZullCHgsy85VlwGZgO8PWbzgS67Z6sxIUArc5fW/LatSJ757dlt1JYdkw=="
|
283 |
},
|
284 |
"node_modules/@huggingface/tasks": {
|
285 |
"version": "0.10.22",
|
|
|
2551 |
"integrity": "sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg=="
|
2552 |
},
|
2553 |
"node_modules/@rushstack/eslint-patch": {
|
2554 |
+
"version": "1.10.4",
|
2555 |
+
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz",
|
2556 |
+
"integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA=="
|
2557 |
},
|
2558 |
"node_modules/@swc/counter": {
|
2559 |
"version": "0.1.3",
|
|
|
3112 |
}
|
3113 |
},
|
3114 |
"node_modules/axe-core": {
|
3115 |
+
"version": "4.10.0",
|
3116 |
+
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.0.tgz",
|
3117 |
+
"integrity": "sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==",
|
3118 |
"engines": {
|
3119 |
"node": ">=4"
|
3120 |
}
|
|
|
3197 |
}
|
3198 |
},
|
3199 |
"node_modules/browserslist": {
|
3200 |
+
"version": "4.23.3",
|
3201 |
+
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz",
|
3202 |
+
"integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==",
|
3203 |
"funding": [
|
3204 |
{
|
3205 |
"type": "opencollective",
|
|
|
3215 |
}
|
3216 |
],
|
3217 |
"dependencies": {
|
3218 |
+
"caniuse-lite": "^1.0.30001646",
|
3219 |
+
"electron-to-chromium": "^1.5.4",
|
3220 |
+
"node-releases": "^2.0.18",
|
3221 |
"update-browserslist-db": "^1.1.0"
|
3222 |
},
|
3223 |
"bin": {
|
|
|
3297 |
}
|
3298 |
},
|
3299 |
"node_modules/caniuse-lite": {
|
3300 |
+
"version": "1.0.30001650",
|
3301 |
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001650.tgz",
|
3302 |
+
"integrity": "sha512-fgEc7hP/LB7iicdXHUI9VsBsMZmUmlVJeQP2qqQW+3lkqVhbmjEU8zp+h5stWeilX+G7uXuIUIIlWlDw9jdt8g==",
|
3303 |
"funding": [
|
3304 |
{
|
3305 |
"type": "opencollective",
|
|
|
3857 |
}
|
3858 |
},
|
3859 |
"node_modules/debug": {
|
3860 |
+
"version": "4.3.6",
|
3861 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
3862 |
+
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
3863 |
"dependencies": {
|
3864 |
"ms": "2.1.2"
|
3865 |
},
|
|
|
4083 |
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
|
4084 |
},
|
4085 |
"node_modules/electron-to-chromium": {
|
4086 |
+
"version": "1.5.5",
|
4087 |
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.5.tgz",
|
4088 |
+
"integrity": "sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA=="
|
4089 |
},
|
4090 |
"node_modules/emoji-regex": {
|
4091 |
"version": "9.2.2",
|
|
|
4894 |
"node": ">= 12.20"
|
4895 |
}
|
4896 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4897 |
"node_modules/fraction.js": {
|
4898 |
"version": "4.3.7",
|
4899 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
|
|
|
5127 |
}
|
5128 |
},
|
5129 |
"node_modules/groq-sdk/node_modules/@types/node": {
|
5130 |
+
"version": "18.19.43",
|
5131 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.43.tgz",
|
5132 |
+
"integrity": "sha512-Mw/YlgXnyJdEwLoFv2dpuJaDFriX+Pc+0qOBJ57jC1H6cDxIj2xc5yUrdtArDVG0m+KV6622a4p2tenEqB3C/g==",
|
5133 |
"dependencies": {
|
5134 |
"undici-types": "~5.26.4"
|
5135 |
}
|
5136 |
},
|
5137 |
+
"node_modules/groq-sdk/node_modules/web-streams-polyfill": {
|
5138 |
+
"version": "3.3.3",
|
5139 |
+
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
|
5140 |
+
"integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
|
5141 |
+
"engines": {
|
5142 |
+
"node": ">= 8"
|
5143 |
+
}
|
5144 |
+
},
|
5145 |
"node_modules/has-bigints": {
|
5146 |
"version": "1.0.2",
|
5147 |
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
|
|
|
6288 |
"which",
|
6289 |
"write-file-atomic"
|
6290 |
],
|
6291 |
+
"workspaces": [
|
6292 |
+
"docs",
|
6293 |
+
"smoke-tests",
|
6294 |
+
"mock-globals",
|
6295 |
+
"mock-registry",
|
6296 |
+
"workspaces/*"
|
6297 |
+
],
|
6298 |
"dependencies": {
|
6299 |
"@isaacs/string-locale-compare": "^1.1.0",
|
6300 |
"@npmcli/arborist": "^7.5.4",
|
|
|
8706 |
}
|
8707 |
},
|
8708 |
"node_modules/openai": {
|
8709 |
+
"version": "4.55.1",
|
8710 |
+
"resolved": "https://registry.npmjs.org/openai/-/openai-4.55.1.tgz",
|
8711 |
+
"integrity": "sha512-FziYJcWl+SAGbt5AcRIzVzNcnKohpEMQdtzVOmHFbBp/if7x2+ACqgxF2XUbyi2PcKONPcVpmtG5h9qoDAEXwQ==",
|
8712 |
"dependencies": {
|
8713 |
"@types/node": "^18.11.18",
|
8714 |
"@types/node-fetch": "^2.6.4",
|
|
|
8716 |
"agentkeepalive": "^4.2.1",
|
8717 |
"form-data-encoder": "1.7.2",
|
8718 |
"formdata-node": "^4.3.2",
|
8719 |
+
"node-fetch": "^2.6.7"
|
|
|
8720 |
},
|
8721 |
"bin": {
|
8722 |
"openai": "bin/cli"
|
8723 |
+
},
|
8724 |
+
"peerDependencies": {
|
8725 |
+
"zod": "^3.23.8"
|
8726 |
+
},
|
8727 |
+
"peerDependenciesMeta": {
|
8728 |
+
"zod": {
|
8729 |
+
"optional": true
|
8730 |
+
}
|
8731 |
}
|
8732 |
},
|
8733 |
"node_modules/openai/node_modules/@types/node": {
|
8734 |
+
"version": "18.19.43",
|
8735 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.43.tgz",
|
8736 |
+
"integrity": "sha512-Mw/YlgXnyJdEwLoFv2dpuJaDFriX+Pc+0qOBJ57jC1H6cDxIj2xc5yUrdtArDVG0m+KV6622a4p2tenEqB3C/g==",
|
8737 |
"dependencies": {
|
8738 |
"undici-types": "~5.26.4"
|
8739 |
}
|
|
|
9430 |
}
|
9431 |
},
|
9432 |
"node_modules/replicate": {
|
9433 |
+
"version": "0.32.0",
|
9434 |
+
"resolved": "https://registry.npmjs.org/replicate/-/replicate-0.32.0.tgz",
|
9435 |
+
"integrity": "sha512-XOJBnV/FpRsz/r7DEj8KL4pdDk9BpptkljGOhKmjlZGdNcBvt532GxxmjT4ZaqdExg7STxrh1JHhI91zg+CZTw==",
|
9436 |
"engines": {
|
9437 |
"git": ">=2.11.0",
|
9438 |
"node": ">=18.0.0",
|
|
|
10517 |
"version": "2.9.1",
|
10518 |
"resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.9.1.tgz",
|
10519 |
"integrity": "sha512-2FAuSIGHlY+apM9FVlj8/oNhd+1y+Uwv5QNkMQz1oSfdHk4PXo1qoCw9I5M7j0vpH8CSWFJwXbVPeYDjLCx9PA==",
|
10520 |
+
"workspaces": [
|
10521 |
+
"packages/eslint-config-custom"
|
10522 |
+
],
|
10523 |
"engines": {
|
10524 |
"node": ">=16.15.0",
|
10525 |
"npm": ">=8"
|
|
|
10560 |
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="
|
10561 |
},
|
10562 |
"node_modules/web-streams-polyfill": {
|
10563 |
+
"version": "4.0.0-beta.3",
|
10564 |
+
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
|
10565 |
+
"integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
|
10566 |
"engines": {
|
10567 |
+
"node": ">= 14"
|
10568 |
}
|
10569 |
},
|
10570 |
"node_modules/webidl-conversions": {
|
|
|
10611 |
}
|
10612 |
},
|
10613 |
"node_modules/which-builtin-type": {
|
10614 |
+
"version": "1.1.4",
|
10615 |
+
"resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.4.tgz",
|
10616 |
+
"integrity": "sha512-bppkmBSsHFmIMSl8BO9TbsyzsvGjVoppt8xUiGzwiu/bhDCGxnpOKCxgqj6GuyHE0mINMDecBFPlOm2hzY084w==",
|
10617 |
"dependencies": {
|
10618 |
+
"function.prototype.name": "^1.1.6",
|
10619 |
+
"has-tostringtag": "^1.0.2",
|
10620 |
"is-async-function": "^2.0.0",
|
10621 |
"is-date-object": "^1.0.5",
|
10622 |
"is-finalizationregistry": "^1.0.2",
|
|
|
10625 |
"is-weakref": "^1.0.2",
|
10626 |
"isarray": "^2.0.5",
|
10627 |
"which-boxed-primitive": "^1.0.2",
|
10628 |
+
"which-collection": "^1.0.2",
|
10629 |
+
"which-typed-array": "^1.1.15"
|
10630 |
},
|
10631 |
"engines": {
|
10632 |
"node": ">= 0.4"
|
package.json
CHANGED
@@ -10,9 +10,9 @@
|
|
10 |
},
|
11 |
"dependencies": {
|
12 |
"@aitube/clap": "0.1.2",
|
13 |
-
"@anthropic-ai/sdk": "^0.
|
14 |
"@huggingface/hub": "^0.15.1",
|
15 |
-
"@huggingface/inference": "^2.
|
16 |
"@mediapipe/tasks-vision": "^0.10.14",
|
17 |
"@radix-ui/react-accordion": "^1.1.2",
|
18 |
"@radix-ui/react-avatar": "^1.0.3",
|
@@ -64,7 +64,7 @@
|
|
64 |
"react-icons": "^4.11.0",
|
65 |
"react-konva": "^18.2.10",
|
66 |
"react-virtualized-auto-sizer": "^1.0.20",
|
67 |
-
"replicate": "^0.
|
68 |
"sbd": "^1.0.19",
|
69 |
"sharp": "^0.33.4",
|
70 |
"tailwind-merge": "^2.2.2",
|
|
|
10 |
},
|
11 |
"dependencies": {
|
12 |
"@aitube/clap": "0.1.2",
|
13 |
+
"@anthropic-ai/sdk": "^0.25.0",
|
14 |
"@huggingface/hub": "^0.15.1",
|
15 |
+
"@huggingface/inference": "^2.0.0",
|
16 |
"@mediapipe/tasks-vision": "^0.10.14",
|
17 |
"@radix-ui/react-accordion": "^1.1.2",
|
18 |
"@radix-ui/react-avatar": "^1.0.3",
|
|
|
64 |
"react-icons": "^4.11.0",
|
65 |
"react-konva": "^18.2.10",
|
66 |
"react-virtualized-auto-sizer": "^1.0.20",
|
67 |
+
"replicate": "^0.32.0",
|
68 |
"sbd": "^1.0.19",
|
69 |
"sharp": "^0.33.4",
|
70 |
"tailwind-merge": "^2.2.2",
|
src/app/engine/render.ts
CHANGED
@@ -192,17 +192,18 @@ export async function newRender({
|
|
192 |
if (!replicateApiKey || `${replicateApiKey || ""}`.length < 8) {
|
193 |
throw new Error(`invalid replicateApiKey, you need to configure your REPLICATE_API_TOKEN in order to use the REPLICATE rendering engine`)
|
194 |
}
|
|
|
195 |
if (!replicateApiModel) {
|
196 |
throw new Error(`invalid replicateApiModel, you need to configure your REPLICATE_API_MODEL in order to use the REPLICATE rendering engine`)
|
197 |
}
|
198 |
-
|
199 |
-
throw new Error(`invalid replicateApiModelVersion, you need to configure your REPLICATE_API_MODEL_VERSION in order to use the REPLICATE rendering engine`)
|
200 |
-
}
|
201 |
const replicate = new Replicate({ auth: replicateApiKey })
|
202 |
|
203 |
const seed = generateSeed()
|
204 |
const prediction = await replicate.predictions.create({
|
205 |
-
|
|
|
|
|
206 |
input: {
|
207 |
prompt: [
|
208 |
"beautiful",
|
@@ -223,7 +224,7 @@ export async function newRender({
|
|
223 |
|
224 |
// no need to reply straight away as images take time to generate, this isn't instantaneous
|
225 |
// also our friends at Replicate won't like it if we spam them with requests
|
226 |
-
await sleep(
|
227 |
|
228 |
return {
|
229 |
renderId: prediction.id,
|
|
|
192 |
if (!replicateApiKey || `${replicateApiKey || ""}`.length < 8) {
|
193 |
throw new Error(`invalid replicateApiKey, you need to configure your REPLICATE_API_TOKEN in order to use the REPLICATE rendering engine`)
|
194 |
}
|
195 |
+
|
196 |
if (!replicateApiModel) {
|
197 |
throw new Error(`invalid replicateApiModel, you need to configure your REPLICATE_API_MODEL in order to use the REPLICATE rendering engine`)
|
198 |
}
|
199 |
+
|
|
|
|
|
200 |
const replicate = new Replicate({ auth: replicateApiKey })
|
201 |
|
202 |
const seed = generateSeed()
|
203 |
const prediction = await replicate.predictions.create({
|
204 |
+
model: replicateApiModelVersion
|
205 |
+
? `${replicateApiModel}:${replicateApiModelVersion}`
|
206 |
+
: `${replicateApiModel}`,
|
207 |
input: {
|
208 |
prompt: [
|
209 |
"beautiful",
|
|
|
224 |
|
225 |
// no need to reply straight away as images take time to generate, this isn't instantaneous
|
226 |
// also our friends at Replicate won't like it if we spam them with requests
|
227 |
+
await sleep(1000)
|
228 |
|
229 |
return {
|
230 |
renderId: prediction.id,
|
src/app/interface/about/index.tsx
CHANGED
@@ -8,8 +8,8 @@ import { Login } from "../login"
|
|
8 |
const APP_NAME = `AI Comic Factory`
|
9 |
const APP_DOMAIN = `aicomicfactory.app`
|
10 |
const APP_URL = `https://aicomicfactory.app`
|
11 |
-
const APP_VERSION = `1.
|
12 |
-
const APP_RELEASE_DATE = `
|
13 |
|
14 |
const ExternalLink = ({ url, children }: { url: string; children: ReactNode }) => {
|
15 |
return (
|
|
|
8 |
const APP_NAME = `AI Comic Factory`
|
9 |
const APP_DOMAIN = `aicomicfactory.app`
|
10 |
const APP_URL = `https://aicomicfactory.app`
|
11 |
+
const APP_VERSION = `1.6`
|
12 |
+
const APP_RELEASE_DATE = `August 2024`
|
13 |
|
14 |
const ExternalLink = ({ url, children }: { url: string; children: ReactNode }) => {
|
15 |
return (
|