Skip to main content
Version: 1.0

aixplain.utils.evolve_utils

create_llm_dict

def create_llm_dict(
llm: Optional[Union[Text, LLM]]) -> Optional[Dict[str, Any]]

[view_source]

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.