def is_function_calling_model(self, model_name: str) -> bool:
        """
        Check if the model is a function calling model.

        Returns:
            bool: True if the model is a function calling model, False otherwise.

        """
        response = self.get_model_details(model_name)
        if response.status_code == 404:
            return False
        response_json = response.json()
        tags = response_json.get("tags", [])
        return "tools" in tags

        Check if the model is a function calling model.

        Returns:
            bool: True if the model is a function calling model, False otherwise.

        
llama-index-integrations/llms/llama-index-llms-deepinfra/llama_index/llms/deepinfra/client.py