Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for model existence in text client (#2729)
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.
- Loading branch information