Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes #112

Merged
merged 1 commit into from
Mar 28, 2024
Merged

changes #112

merged 1 commit into from
Mar 28, 2024

Conversation

matthewkennedy5
Copy link
Contributor

@matthewkennedy5 matthewkennedy5 commented Mar 28, 2024

Description

  • Increased the temperature parameter in response_agent.py to make the chat model responses more diverse.
  • Updated the Whisper model from "base.en" to "medium.en" in routers/ml.py to improve transcription quality.
  • Added a TODO comment in routers/ml.py to handle low confidence transcriptions in the future.
  • Improved exception handling in development mode by raising exceptions in routers/voice.py.
  • Updated settings.py to use "azure/gpt-4-deployment" for the chat model and set the ASR method to "whisper".
  • Enhanced the podcast host prompt in prompts/most-interesting-bot/podcast_host.md with new conversational guidelines, including humor and voice-specific instructions.

Changes walkthrough

Relevant files
Enhancement
response_agent.py
Increase Chat Model Temperature Parameter                                           

openduck-py/openduck_py/response_agent.py

  • Increased the temperature parameter for the chat model from 1.2 to
    1.4.
  • +1/-1     
    ml.py
    Update Whisper Model and Add TODO for Confidence Handling           

    openduck-py/openduck_py/routers/ml.py

  • Changed the Whisper model from "base.en" to "medium.en".
  • Added a TODO comment regarding handling low confidence transcriptions.

  • +2/-1     
    voice.py
    Improve Exception Handling in Development Mode                                 

    openduck-py/openduck_py/routers/voice.py

  • Added IS_DEV import.
  • Included a conditional to raise exceptions in development mode.
  • +3/-0     
    settings.py
    Update Chat Model and ASR Method Settings                                           

    openduck-py/openduck_py/settings.py

  • Commented out the CHAT_MODEL "azure/gpt-35-turbo-deployment".
  • Set CHAT_MODEL to "azure/gpt-4-deployment".
  • Changed the ASR_METHOD from "deepgram" to "whisper".
  • +3/-2     
    podcast_host.md
    Enhance Podcast Host Prompt Guidelines                                                 

    openduck-py/openduck_py/prompts/most-interesting-bot/podcast_host.md

  • Added guidelines for the podcast host to tell jokes in the style of
    Jerry Seinfeld.
  • Included instructions for voice conversation and handling numbers.
  • Added rules for conversation engagement and not referring to the
    rules.
  • +9/-2     
    💡 Usage Guide

    Checking Your Pull Request

    Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

    Talking to CodeAnt AI

    Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

    @codeant-ai ask: Your question here
    

    This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

    Check Your Repository Health

    To analyze the health of your code repository, visit our dashboard at app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

    Copy link

    vercel bot commented Mar 28, 2024

    The latest updates on your projects. Learn more about Vercel for Git ↗︎

    Name Status Preview Comments Updated (UTC)
    openduck ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2024 10:20pm

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    bug_fix enhancement New feature or request
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants