TASK:mixi;

This commit is contained in:
shahaibo
2024-08-23 16:33:24 +08:00
parent 8f1d8c7b0f
commit 76992a0fb7
13 changed files with 3010 additions and 2812 deletions

View File

@@ -579,9 +579,9 @@ public class PythonService {
.build();
MediaType mediaType = MediaType.parse("application/json");
Map<String, Object> content = Maps.newHashMap();
content.put("input_message", "recommend an outfit");
content.put("user_id", aiRecommendDTO.getUserId());
content.put("image_urls", "http://localhost:5001/chat");
content.put("input_message", "recommend three outfits");
content.put("user_id", "user456");
content.put("image_urls", "");
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content));
Request request = new Request.Builder()