|
|
|
@ -159,7 +159,7 @@ public class MaxKbImpl {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static JSONObject generateQuestion(String zskId, String modelId, String documentId) {
|
|
|
|
|
String authCode=MaxKbImpl.getAuthorization();
|
|
|
|
|
String authCode = MaxKbImpl.getAuthorization();
|
|
|
|
|
String url = baseUrl + "/api/dataset/" + zskId + "/document/batch_generate_related";
|
|
|
|
|
JSONObject jo = new JSONObject();
|
|
|
|
|
jo.put("model_id", modelId);
|
|
|
|
@ -167,6 +167,10 @@ public class MaxKbImpl {
|
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
|
list.add(documentId);
|
|
|
|
|
jo.put("document_id_list", list);
|
|
|
|
|
|
|
|
|
|
System.out.println("modelId=" + modelId);
|
|
|
|
|
System.out.println(jo.toString());
|
|
|
|
|
|
|
|
|
|
HttpResponse response = HttpRequest.put(url)
|
|
|
|
|
.header("Accept", "application/json, text/plain, */*")
|
|
|
|
|
.header("Accept-Encoding", "gzip,deflate")
|
|
|
|
|