maxframe.learn.contrib.llm.models.dashscope.DashScopeMultiModalLLM#
- class maxframe.learn.contrib.llm.models.dashscope.DashScopeMultiModalLLM(name: str, api_key_resource: str)[source]#
DashScope multi-modal LLM.
- __init__(name: str, api_key_resource: str)[source]#
Initialize a DashScope multi-modal LLM.
- Parameters:
name (str) – The LLM name to use, check DashScope for available models.
api_key_resource (str) – The MaxCompute resource file name containing the DashScope API key.
Methods
__init__(name, api_key_resource)Initialize a DashScope multi-modal LLM.
copy()copy_to(target)generate(data, prompt_template[, params])validate_params(params)Attributes
api_key_resourcename