Tudor44 / assistant-api-java

Lightweight Java client for easy integration with OpenAI Assistant API, enabling Generative AI in Java applications
8 stars 8 forks source link
api artificial-intelligence client generative-ai java llm openai

OpenAI Assistant API for Java

This project offers a lightweight and straightforward Java client for interacting with the OpenAI Assistant API. It's specifically designed to facilitate the integration of Generative AI technology into Java applications.

Important considerations

This repository uses Assistant API to intelligently address user problems. This process may involve multiple calls to the OpenAI API. Please be aware that in the event of an error during processing a request, there is a risk of rapidly escalating API calls, which could dramatically increase usage costs. This is especially important if you plan to use it as an unsupervised service performing tasks in the background. This note is relevant for any usage of Assistant API, not just this repository. Always use Assistant API with caution.

Features

For detailed information on the OpenAI API and its capabilities, visit OpenAI's official documentation. https://platform.openai.com/docs/assistants/overview

Requirements

Setup and Usage

  1. Clone the repository.
  2. Add your OpenAI API key to src/main/resources/application.properties.
  3. Build the project using Maven: mvn clean install.
  4. Run the Main.java class to see the client in action.

Contributing

Contributions to the project are welcome! Feel free to fork the repository, make changes, and submit pull requests.

License

This project is open-sourced under the MIT License.