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

Method usage

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

Source from the content-addressed store, hash-verified

11
12public class ZiyaUsage{
13 public static void usage()
14 throws NoApiKeyException, ApiException, InputRequiredException {
15 Generation gen = new Generation();
16 GenerationParam param = GenerationParam
17 .builder()
18 .model("ziya-llama-13b-v1")
19 .prompt("<human>:帮我写一份去西安的旅游计划\n<bot>:")
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 15

mainMethod · 0.95
testCustomSampleMethod · 0.45
testNl2codeSampleMethod · 0.45
testCommit2msgSampleMethod · 0.45
testUnittestSampleMethod · 0.45
testCodeqaSampleMethod · 0.45
testNl2sqlSampleMethod · 0.45

Calls 4

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

Tested by 15

testCustomSampleMethod · 0.36
testNl2codeSampleMethod · 0.36
testCommit2msgSampleMethod · 0.36
testUnittestSampleMethod · 0.36
testCodeqaSampleMethod · 0.36
testNl2sqlSampleMethod · 0.36
beforeMethod · 0.36