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

Update text_client_utils.py #2729

Merged
merged 2 commits into from
Apr 21, 2023
Merged

Update text_client_utils.py #2729

merged 2 commits into from
Apr 21, 2023

Commits on Apr 18, 2023

  1. Update text_client_utils.py

    This implementation adds a new get_available_models() method to the DebugClient class, which retrieves the list of available model configurations from the API and returns a list of their names. The send_message() method then calls this method and checks if the provided model_config_name is in the list of available models. If it's not, a ValueError is raised with an appropriate error message.
    mzamini92 committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    51ecd41 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Update text_client_utils.py

    we can modify the `__init__` method to include the line `self.available_models = self.get_available_models()` so that the list of available models is retrieved only once during the instantiation of the DebugClient object:
    mzamini92 committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    373d7ff View commit details
    Browse the repository at this point in the history