Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Update text_client_utils.py

Open mzamini92 opened this issue 1 year ago • 1 comments

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 avatar Apr 18 '23 22:04 mzamini92

we can probably get the model names once, no need to fetch every time.

AbdBarho avatar Apr 19 '23 04:04 AbdBarho