aixplain.utils.evolve_utils
create_llm_dict
def create_llm_dict(
llm: Optional[Union[Text, LLM]]) -> Optional[Dict[str, Any]]
Create a dictionary representation of an LLM for evolution parameters.
Arguments:
llm
- Either an LLM ID string or an LLM object instance.
Returns:
Dictionary with LLM information if llm is provided, None otherwise.