package qiwu.xfllmdemo; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import qiwu.xfllmdemo.pojo.LLMServiceRequestVO; import qiwu.xfllmdemo.pojo.LLMServiceResponseVO; import qiwu.xfllmdemo.service.LLMService; import java.util.UUID; @SpringBootTest class XfLLMDemoApplicationTests { // @Test void contextLoads() { } @Test void LLMServiceSingleQuestionTest() { LLMService ls = new LLMService(); String question = "你今日饮咗未?"; LLMServiceRequestVO req = new LLMServiceRequestVO(UUID.fromString("6d7f4741-3bdb-40c8-a2d8-55b505fe6e2a"), question); LLMServiceResponseVO resp = ls.query(req); System.out.println("------- query() ends -------"); System.out.println("QueryResponseVO: " + resp/*.toString()*/); System.out.println(resp.answer); } }