废话不多说,直接上演示图:
可以使用下载离线安装包,安装速度快:
https://lingma.aliyun.com/lingma/download
我的IntelliJ IDEA 是社区版:
https://www.jetbrains.com.cn/idea/download/download-thanks.html
PS: JFinal 项目中 调用 DeepSeek 大模型:
<dependency> <groupId>io.github.pig-mesh.ai</groupId> <artifactId>deepseek4j-core</artifactId> <version>1.4.3</version> </dependency>
public static void main(String[] args) { DeepSeekClient.Builder conf = DeepSeekClient.builder(); conf.baseUrl = "https://ai.gitee.com/v1/"; conf.model = "DeepSeek-R1"; //https://ai.gitee.com/serverless-api?model=DeepSeek-R1 conf.openAiApiKey = "登录自己码云上面链接里获取令牌,粘贴到这里"; DeepSeekClient client = conf.build(); Flux<ChatCompletionResponse> flux = client.chatFluxCompletion("你好 deepseek"); // 订阅并打印每个 ChatCompletionResponse 对象。 flux.subscribe(System.out::println); // JF Controller 里面可使用Sse, 也可以打印完毕后处理再返回 json 都可以,看自己业务。 // SseEmitter sseEmitter = new SseEmitter(getResponse()); // sseEmitter.sendMessage(data); // sseEmitter.complete(); // renderNull(); }