This PR implements a feature to toggle the /voice-search endpoint on or off based on the TOGGLE_VOICE environment variable.
Goal
To enhance endpoint design and user experience by making the /voice-search endpoint optional. This change also improves code readability and facilitates easier integration of external and custom models.
Changes
Added TOGGLE_VOICE environment variable to control /voice-search endpoint availability
How has this been tested?
Verified functionality using docker-compose
Checked endpoint visibility in Swagger UI
Updated and ran unit tests
How to test this?
Set or unset the TOGGLE_VOICE environment variable
Observe changes in Swagger UI and endpoint accessibility
Checklist
Fill with x for completed.
[x] My code follows the style guidelines of this project
[x] I have reviewed my own code to ensure good quality
[x] I have tested the functionality of my code to ensure it works as intended
[x] I have resolved merge conflicts
[x] I have updated the automated tests
[x] I have updated the CI/CD scripts in .github/workflows/
Reviewer: @suzinyou Estimate: 10 min
Ticket
Fixes: JIRA_TICKET_LINK
Description
This PR implements a feature to toggle the
/voice-search
endpoint on or off based on theTOGGLE_VOICE
environment variable.Goal
To enhance endpoint design and user experience by making the
/voice-search
endpoint optional. This change also improves code readability and facilitates easier integration of external and custom models.Changes
TOGGLE_VOICE
environment variable to control/voice-search
endpoint availabilityHow has this been tested?
How to test this?
TOGGLE_VOICE
environment variableChecklist
Fill with
x
for completed..github/workflows/