expressedAI is an Express-based server application designed to seamlessly integrate with OpenAI's API, providing an easy interface to interact with AI models for various applications.
- Easy integration with OpenAI's API.
- Scalable Express server setup.
- Customizable endpoint for receiving user queries.
- JSON response handling for client-server communication.
To get started with expressedAI, follow these steps:
- Clone the repository:
git clone https://github.com/mustafa-boorenie/expressedAI.git
- Navigate to the project directory:
cd expressedAI
- Install dependencies:
npm install
To start the server, run the following command in your terminal:
npm start
This will launch the Express server on localhost:3000
. The server can be accessed via HTTP client, such as Postman, or through your own frontend setup.
To send a user question to the server:
- Use an HTTP POST request to
http://localhost:3000/userQuestion
. - Include a JSON payload in the request body:
{ "userQuestion": "What is the capital of France?" }
The server will process the request using the OpenAI model and return the response.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Mustafa Boorenie - [email protected]
Project Link: https://github.com/mustafa-boorenie/expressedAI