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

class maxframe.learn.contrib.llm.models.dashscope.DashScopeTextLLM(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 文本大语言模型。

classify(series, labels[, description, ...])

copy()

copy_to(target)

extract(series, schema[, description, ...])

generate(data, prompt_template[, params])

summarize(series[, index])

translate(series, target_language[, ...])

validate_params(params)

属性

api_key_resource

content_part

name