MCPcopy Create free account
hub / github.com/dashscope/dashscope-sdk-java / usage

Method usage

samples/BiLLaUsage.java:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11public 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 {

Callers 1

mainMethod · 0.95

Calls 4

callMethod · 0.95
toJsonMethod · 0.95
builderMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected