Skip to content

Commit 4e12a03

Browse files
committed
Revert missing dependencies image ai workflows
1 parent 8d3581f commit 4e12a03

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

typescript/end-to-end-applications/ai-image-workflows/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"scripts": {
1010
"build": "tsc --noEmitOnError",
1111
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only src/app.ts",
12-
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable-diffusion/stable_diffusion.ts"
12+
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable_diffusion.ts"
1313
},
1414
"dependencies": {
1515
"@restatedev/restate-sdk": "^1.4.0",
16-
"node-fetch": "^3.3.2",
16+
"axios": "^1.6.7",
17+
"axios-retry": "^4.0.0",
1718
"jimp": "^0.22.10",
1819
"puppeteer": "^21.9.0"
1920
},

typescript/end-to-end-applications/ai-image-workflows/src/stable_diffusion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function callStableDiffusion(ctx: restate.Context, imgOutputPath: string,
4545

4646
await ctx.run(async () => {
4747
// invoke the stable diffusion service with our awakeable as callback
48-
await fetch("http://localhost:5050/generate", {
48+
await axios.post("http://localhost:5050/generate", {
4949
method: "POST",
5050
headers: {
5151
"Content-Type": "application/json"

0 commit comments

Comments
 (0)