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

Method dollyQuickStart

samples/DollyUsage.java:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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