design single接口疏通

This commit is contained in:
xupei
2023-09-20 16:16:02 +08:00
parent 7e6047ddf7
commit 20f5a3eda2
8 changed files with 43 additions and 71 deletions

View File

@@ -1643,7 +1643,7 @@ public class PythonService {
content.put("category", category);
content.put("mode",mode);
content.put("str", text);
content.put("version","2");
content.put("version",modelName);
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content,SerializerFeature.WriteMapNullValue));
Request request = new Request.Builder()
// .url(accessPythonIp + ":2828/aida/diffusion")