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

zach save bot progress #84

Merged
merged 1 commit into from
Mar 20, 2024
Merged

zach save bot progress #84

merged 1 commit into from
Mar 20, 2024

Conversation

zachwe
Copy link
Contributor

@zachwe zachwe commented Mar 20, 2024

User description

  • WIP
  • final changes
  • cleanup
  • better prompt
  • make it better
  • use gpt3.5 for intro for speed

Description

  • Introduced the ability to dynamically select the chat model in the _generate_and_speak method by adding a chat_model parameter.
  • Replaced the hardcoded CHAT_MODEL_GPT4 with the new chat_model parameter to allow for flexibility in model selection.
  • Modified the start_response method to utilize the new chat_model parameter, enhancing the method's adaptability.
  • Increased the temperature parameter in the acompletion function from 0.3 to 1.2 to potentially alter the response generation behavior.

Changes walkthrough

Relevant files
Enhancement
voice.py
Introduce Dynamic Chat Model Selection and Adjust Temperature   

openduck-py/openduck_py/routers/voice.py

  • Added chat_model parameter to _generate_and_speak method to allow
    specifying the chat model dynamically.
  • Changed the hardcoded chat model from CHAT_MODEL_GPT4 to the
    chat_model parameter within the _generate_and_speak method.
  • Updated the start_response method to pass the CHAT_MODEL variable when
    calling _generate_and_speak.
  • Adjusted the temperature parameter in the acompletion function call
    from 0.3 to 1.2.
  • +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 20, 2024

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

    Name Status Preview Updated (UTC)
    openduck 🔄 Building (Inspect) Visit Preview Mar 20, 2024 4:40pm

    @zachwe zachwe merged commit 813d8bb into main Mar 20, 2024
    6 of 7 checks passed
    Copy link

    netlify bot commented Mar 20, 2024

    Deploy Preview for openduck canceled.

    Name Link
    🔨 Latest commit 1eb21f0
    🔍 Latest deploy log https://app.netlify.com/sites/openduck/deploys/65fb1177b4f84c0008aa3ecc

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

    Successfully merging this pull request may close these issues.

    1 participant