Rooni commited on
Commit
a1e7d71
·
verified ·
1 Parent(s): 4dd5746

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +4 -5
server.js CHANGED
@@ -69,16 +69,15 @@ app.post('/gen', upload.single('image'), async (req, res) => {
69
  {
70
  "role": "user",
71
  "content": [
 
 
 
 
72
  {
73
  "type": "text",
74
  "text": prompt,
75
  },
76
  ],
77
- },
78
-
79
- {
80
- "role": "user",
81
- "content": img,
82
  }
83
  ],
84
  };
 
69
  {
70
  "role": "user",
71
  "content": [
72
+ {
73
+ "type": "image",
74
+ "data": img,
75
+ },
76
  {
77
  "type": "text",
78
  "text": prompt,
79
  },
80
  ],
 
 
 
 
 
81
  }
82
  ],
83
  };