This PR adds support for the customKey feature in the Chisel app. It includes changes in both the frontend and backend to display the mic icon in the navigation bar if the user has entered a customKey. Additionally, the uploadAudio API has been modified to accept the user's customKey as a parameter and use it in the call to OpenAI's Whisper API for audio transcription.
Summary of Changes
Frontend Changes
Modified src/BookEditor.tsx to conditionally render the mic icon in the navigation bar if the user has a customKey in their settings.
Backend Changes
Modified server.js to accept the customKey as a parameter in the uploadAudio API endpoint.
Updated the call to OpenAI's Whisper API in the uploadAudio endpoint to include the user's customKey.
These changes ensure that the user's customKey is used for audio transcription and that the mic icon is displayed in the navigation bar when a customKey is present.
Fixes #67.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/feature/customKey-support
To make tweaks to this pull request, leave a comment below or in the code.
Description
This PR adds support for the customKey feature in the Chisel app. It includes changes in both the frontend and backend to display the mic icon in the navigation bar if the user has entered a customKey. Additionally, the uploadAudio API has been modified to accept the user's customKey as a parameter and use it in the call to OpenAI's Whisper API for audio transcription.
Summary of Changes
Frontend Changes
src/BookEditor.tsx
to conditionally render the mic icon in the navigation bar if the user has a customKey in their settings.Backend Changes
server.js
to accept the customKey as a parameter in theuploadAudio
API endpoint.uploadAudio
endpoint to include the user's customKey.These changes ensure that the user's customKey is used for audio transcription and that the mic icon is displayed in the navigation bar when a customKey is present.
Fixes #67.
To checkout this PR branch, run the following command in your terminal:
To make tweaks to this pull request, leave a comment below or in the code.