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

Method usage

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

Source from the content-addressed store, hash-verified

11
12public class ChatGLMUsage {
13 public static void usage()
14 throws NoApiKeyException, ApiException, InputRequiredException {
15 GeneralHalfDuplexApi gen = new GeneralHalfDuplexApi();
16 ChatGLMParam param = ChatGLMParam.builder().model("chatglm-6b-v2").prompt("介绍下杭州").history(Arrays.asList()).build();
17 DashScopeResult 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