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.
- Create an assistant.
- Create a thread.
- Send messages in a thread.
- Fetch messages from a thread.
- Handle responses for assistants, threads, and messages.
For detailed information on the OpenAI API and its capabilities, visit OpenAI's official documentation. https://platform.openai.com/docs/assistants/overview
- Java 17 (for now)
- Maven
- Clone the repository.
- Add your OpenAI API key to
src/main/resources/application.properties
. - Build the project using Maven:
mvn clean install
. - Run the
Main.java
class to see the client in action.
Contributions to the project are welcome! Feel free to fork the repository, make changes, and submit pull requests.
This project is open-sourced under the MIT License.