AI-java  by mainpropath

Java SDK for large model API integration

created 1 year ago
316 stars

Top 86.7% on sourcepulse

GitHubView on GitHub
Project Summary

This Java SDK simplifies integration with large language models (LLMs) for Java developers, enabling easy access to advanced AI capabilities like chat, image generation, and text-to-speech. It targets developers building AI-powered applications, offering a unified interface across multiple LLM providers and supporting features like streaming responses and context management for more natural interactions.

How It Works

The SDK employs an aggregation session pattern, providing a single entry point to access various LLM functionalities (chat, image, audio, etc.) through distinct session interfaces. This design promotes modularity and allows for easy extension to support new LLM providers or features. It aims to abstract away provider-specific complexities, offering a consistent API for interacting with different models.

Quick Start & Requirements

  • Install by downloading and installing to your local Maven repository.
  • Dependencies: Introduce ai-openai for OpenAI models or ai-spark for Spark models into your pom.xml.
  • Requires Java.
  • See openai test path and 讯飞星火 test path for usage examples.

Highlighted Details

  • Implements all interfaces from the official ChatGPT documentation endpoints.
  • Actively developing support for multiple LLM providers, including OpenAI and iFlytek Spark.
  • Supports streaming responses for more interactive user experiences.
  • Offers context management to maintain conversational history.

Maintenance & Community

The project is under active development, with recent updates including implementation of Spark model dialogue, document dialogue, and image generation. The project welcomes feature requests and contributions.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The project is described as being in active development, with ongoing work to integrate additional model providers. Specific details on error handling robustness and comprehensive documentation beyond examples are not detailed.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

aisuite by andrewyng

0.2%
12k
Unified interface for multiple generative AI providers
created 1 year ago
updated 3 days ago
Feedback? Help us improve.