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

Method usage

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

Source from the content-addressed store, hash-verified

10
11public class ZiyaUsage {
12 public static void usage() throws NoApiKeyException, ApiException, InputRequiredException {
13 Generation gen = new Generation();
14 GenerationParam param =
15 GenerationParam.builder()
16 .model("ziya-llama-13b-v1")
17 .prompt("<human>:帮我写一份去西安的旅游计划\n<bot>:")
18 .build();
19 GenerationResult result = gen.call(param);
20 System.out.println(JsonUtils.toJson(result));
21 }
22
23 public static void main(String[] args) {
24 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