Merge branch 'fal-ai:main' into lu/tldraw-issues

This commit is contained in:
Lu Wilson 2023-11-21 11:26:22 +00:00 committed by GitHub
commit 6be0379c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

8
package-lock.json generated
View File

@ -8,7 +8,7 @@
"name": "tldraw-fal",
"version": "0.1.0",
"dependencies": {
"@fal-ai/serverless-client": "^0.5.3",
"@fal-ai/serverless-client": "^0.5.4",
"@fal-ai/serverless-proxy": "^0.5.0",
"@tldraw/tldraw": "^2.0.0-canary.ba4091c59418",
"next": "14.0.3",
@ -117,9 +117,9 @@
}
},
"node_modules/@fal-ai/serverless-client": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/@fal-ai/serverless-client/-/serverless-client-0.5.3.tgz",
"integrity": "sha512-Rxtsh+zA8QOJ7QtEgF5gXbLbTZhgdp+Z2owNkvXbVjkQOZvQFfuW44A7uWKGdWvdk4XF4w7VmyDyCRsx9wPNdA=="
"version": "0.5.4",
"resolved": "https://registry.npmjs.org/@fal-ai/serverless-client/-/serverless-client-0.5.4.tgz",
"integrity": "sha512-8eTA+lBXtGzYqDTjIHm7vnViu5AlPZYR1D9BQbsDxro/K53W9sMhZtc7QSboE1MMcbs4hW2B+f+Jkkx39hJCPw=="
},
"node_modules/@fal-ai/serverless-proxy": {
"version": "0.5.0",

View File

@ -10,7 +10,7 @@
"format": "prettier --write ."
},
"dependencies": {
"@fal-ai/serverless-client": "^0.5.3",
"@fal-ai/serverless-client": "^0.5.4",
"@fal-ai/serverless-proxy": "^0.5.0",
"@tldraw/tldraw": "^2.0.0-canary.ba4091c59418",
"next": "14.0.3",

View File

@ -93,6 +93,8 @@ export function LiveImage() {
sync_mode: true,
seed: 42, // TODO make this configurable in the UI
},
// Disable auto-upload so we can submit the data uri of the image as is
autoUpload: false,
});
if (result && result.images.length > 0) {
setImage(result.images[0].url);