Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements Issue #6 : ChatGPT Functionality, based on Issue #11 of the Experience Form implementation. However, since this implementation does not focus on fine-tuning, the output simply reflects the result from the OpenAI API call.
Requirements
Dependencies
Added axios to handle HTTP requests to the OpenAI API. if you encounter any error regarding
axios
, try to use the following command before starting the app:or
Changes Introduced
New Files:
RefineDescription.js
: Contains logic to refine user input using ChatGPT..env
: Stores the OpenAI API key for secure usage.Updated Files:
ExperienceForm.js
: Integrated the RefineDescription component to update the description text based on user input.Testing Steps
.env
file to enable ChatGPT functionality.Add Experience
button to enter a description.Screen.Recording.2024-10-09.at.16.57.53.mov