(String[] args)
| 24 | } |
| 25 | |
| 26 | public static void main(String[] args) { |
| 27 | try { |
| 28 | // 创建任务 |
| 29 | TingWu tingwu = new TingWu(); |
| 30 | TingWuParam param = TingWuParam.builder(). |
| 31 | model("tingwu-automotive-service-inspection") |
| 32 | .input(buildCreateTask("123456")) |
| 33 | .parameters(new HashMap<>()) //设置parameters参数 |
| 34 | .build(); |
| 35 | DashScopeResult result = tingwu.call(param); |
| 36 | System.out.println(JsonUtils.toJson(result)); |
| 37 | } catch (ApiException | NoApiKeyException | InputRequiredException e) { |
| 38 | System.out.println(e.getMessage()); |
| 39 | } |
| 40 | System.exit(0); |
| 41 | } |
| 42 | } |
nothing calls this directly
no test coverage detected