Closed ajitesh123 closed 2 months ago
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request adds the ability for users to provide audio input for their performance reviews and self-reviews. Previously, users had to type their input, but now they can record their audio. The audio is converted from speech to text using the Whisper model on the Groq library, and the resulting text is used as input to the review generation process.
Main Changes:
convert_speech_to_text
function in thespeech_to_text.py
file, which uses the Groq library to transcribe the audio to text.ReviewRequest
andSelfReviewRequest
models to include an optionalaudio_review
field, and updated thegenerate_review
andgenerate_self_review
functions to use this field when generating the review.convert_speech_to_text
,generate_review
, andgenerate_self_review
functions with audio input.