maxframe.learn.contrib.llm.models.dashscope.DashScopeMultiModalLLM#

class maxframe.learn.contrib.llm.models.dashscope.DashScopeMultiModalLLM(name: str, api_key_resource: str)[源代码]#

DashScope 多模态大语言模型。

__init__(name: str, api_key_resource: str)[源代码]#

初始化一个 DashScope 多模态大语言模型。

参数:
  • name (str) -- 要使用的 LLM 名称,请在 DashScope 查看 可用模型

  • api_key_resource (str) -- 包含 DashScope API 密钥的 MaxCompute 资源文件名。

方法

__init__(name, api_key_resource)

初始化一个 DashScope 多模态大语言模型。

copy()

copy_to(target)

generate(data[, messages, prompt_template, ...])

validate_params(params)

属性

api_key_resource

content_part

name