()
| 11 | |
| 12 | public class ZiyaUsage{ |
| 13 | public static void usage() |
| 14 | throws NoApiKeyException, ApiException, InputRequiredException { |
| 15 | Generation gen = new Generation(); |
| 16 | GenerationParam param = GenerationParam |
| 17 | .builder() |
| 18 | .model("ziya-llama-13b-v1") |
| 19 | .prompt("<human>:帮我写一份去西安的旅游计划\n<bot>:") |
| 20 | .build(); |
| 21 | GenerationResult result = gen.call(param); |
| 22 | System.out.println(JsonUtils.toJson(result)); |
| 23 | } |
| 24 | |
| 25 | public static void main(String[] args){ |
| 26 | try { |