This project will use the responses of an LLM (in this case, ChatGPT) to control parameters within an Strudel livecoding editor.
-
Node Server: A backend server built with Node.js that interacts with the ChatGPT API. It handles API requests and responses, serving as the intermediary between the web page and the ChatGPT service.
-
Web Page: A frontend interface that displays the responses from the ChatGPT API. It also includes a Strudel editor, which allows users to update parameters and interact with the API dynamically.
The Node server is responsible for:
- Making API calls to ChatGPT.
- Processing and formatting the responses.
- Serving the responses to the web page.
The web page provides:
- A user-friendly interface to interact with the ChatGPT API.
- Display of API responses.
- A Strudel editor for updating parameters and sending requests to the Node server.
- Node.js installed on your machine.
- Access to the ChatGPT API.
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd <project-directory>
- Install the dependencies:
npm install
- Start the Node server:
npm start
- Open the web page in your browser:
open http://localhost:5000
- Use the web page to send requests to the ChatGPT API.
- View and interact with the responses.
- Update parameters using the Strudel editor.
Feel free to submit issues or pull requests. Contributions are welcome!
This project is licensed under the MIT License.