()
| 11 | |
| 12 | public class DollyUsage { |
| 13 | public static void dollyQuickStart() |
| 14 | throws NoApiKeyException, ApiException, InputRequiredException { |
| 15 | Generation gen = new Generation(); |
| 16 | DollyParam param = DollyParam.builder().model(Generation.Models.DOLLY_12B_V2).prompt("如何做土豆炖猪脚?").build(); |
| 17 | GenerationResult result = gen.call(param); |
| 18 | System.out.println(JsonUtils.toJson(result)); |
| 19 | } |
| 20 | |
| 21 | public static void main(String[] args){ |
| 22 | try { |