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

Method dollyQuickStart

examples/legacy_2x/DollyUsage.java:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11public class DollyUsage {
12 public static void dollyQuickStart()
13 throws NoApiKeyException, ApiException, InputRequiredException {
14 Generation gen = new Generation();
15 DollyParam param =
16 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 {

Callers 1

mainMethod · 0.95

Calls 6

callMethod · 0.95
toJsonMethod · 0.95
buildMethod · 0.65
promptMethod · 0.45
modelMethod · 0.45
builderMethod · 0.45

Tested by

no test coverage detected