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

Method usage

samples/BaiChuanUsage.java:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12public class BaiChuanUsage{
13 public static void usage()
14 throws NoApiKeyException, ApiException, InputRequiredException {
15 Generation gen = new Generation();
16 GenerationParam param = GenerationParam
17 .builder()
18 .model("baichuan-7b-v1")
19 .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