|
Deliverable 2: ChatGPT Integration Into A-Frame
Description:
The goal of this deliverable is to merge ChatGPT with the A-Frame environment to create a user-friendly 3D modeling experience.
In order to interact with the ChatGPT API, a temporary user interface will be available, allowing users to input prompts and
receive ChatGPT's responses. This initial user interface will ultimately be replaced by voice commands, further aiming to ensure
that the ChatGPT integration works seamlessly with the virtual reality environment.
Implementation Steps:
- Get OpenAI gpt-4 API key
- Create a new instance of the API key with A-Frame and Glitch
- Design virtual reality user interface for prompt inputs
- Make a request to the API
- Process and display the API response
- Add context to API calls
Results:
Temporary User Interface
Make a request to the API
Process and display the OpenAI API response
Demonstrate that the calls keep context from previous prompts
|