test: SparkLlmTest.java

This commit is contained in:
Michael Yang 2024-05-14 11:55:00 +08:00
parent bc61dfbe3a
commit 8096efb8e7

View File

@ -19,6 +19,7 @@ public class SparkLlmTest {
config.setAppId("****");
config.setApiKey("****");
config.setApiSecret("****");
config.setVersion("v3.5");
Llm llm = new SparkLlm(config);
String result = llm.chat("你好,请问你是谁?");
@ -53,6 +54,7 @@ public class SparkLlmTest {
config.setAppId("****");
config.setApiKey("****");
config.setApiSecret("****");
config.setVersion("v3.5");
Llm llm = new SparkLlm(config);