Skip to content

Lightweight Java client for easy integration with OpenAI Assistant API, enabling Generative AI in Java applications

Notifications You must be signed in to change notification settings

PawelSzpyt/assistant-api-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

Features

  • 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

Requirements

  • Java 17 (for now)
  • Maven

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.

About

Lightweight Java client for easy integration with OpenAI Assistant API, enabling Generative AI in Java applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%