deepseek4j  by pig-mesh

Java SDK for DeepSeek models

created 5 months ago
740 stars

Top 47.8% on sourcepulse

GitHubView on GitHub
Project Summary

This Java SDK targets developers building AI-powered applications with DeepSeek models, offering seamless integration into Spring Boot and Solon frameworks. It simplifies complex AI interactions like chat, function calling, and embeddings, enabling rapid development of reactive, stream-based AI features.

How It Works

The SDK provides a comprehensive Java interface for DeepSeek's API, including support for R1 and V3 models. It offers features like function calling, JSON output, and embeddings, with a focus on reactive programming via Reactor for efficient stream handling. A Spring Boot starter module automates configuration and client instantiation, simplifying integration into existing Java applications.

Quick Start & Requirements

  • Install: Add io.github.pig-mesh.ai:deepseek-spring-boot-starter dependency to your pom.xml.
  • Prerequisites: Java 8+, Spring Boot 2.x/3.x or Solon. Requires a DeepSeek API key.
  • Configuration: Set deepseek.api-key in application.yml or application.properties.
  • Docs: https://javaai.pig4cloud.com/deepseek

Highlighted Details

  • Full DeepSeek API support, including Chain-of-Thought and billing details.
  • WebSearch functionality for internet-connected AI.
  • Customizable connection parameters, proxy, timeouts, and logging.
  • Reactor reactive support for simplified streaming responses.

Maintenance & Community

The project is licensed under Apache License 2.0. It draws inspiration from the OpenAI4J project, extending its architecture with DeepSeek-specific features and enhanced reactive support.

Licensing & Compatibility

Apache License 2.0. Permissive, allowing commercial use and integration with closed-source applications.

Limitations & Caveats

The project is inspired by OpenAI4J, which is no longer maintained, suggesting potential future maintenance considerations if the original project's issues were not fully addressed.

Health Check
Last commit

3 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
59 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.