()
| 10 | |
| 11 | public class BiLLaUsage { |
| 12 | public static void usage() |
| 13 | throws NoApiKeyException, ApiException, InputRequiredException { |
| 14 | Generation gen = new Generation(); |
| 15 | String prompt = "翻译成英文:春天来了,花朵都开了。"; |
| 16 | GenerationParam param = GenerationParam |
| 17 | .builder() |
| 18 | .model("billa-7b-sft-v1") |
| 19 | .prompt(prompt) |
| 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 { |