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

class maxframe.learn.contrib.llm.models.dashscope.DashScopeTextLLM(name: str, api_key_resource: str)[source]#

DashScope text LLM.

__init__(name: str, api_key_resource: str)[source]#

Initialize a DashScope text 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 text LLM.

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

copy()

copy_to(target)

generate(data, prompt_template[, params])

summarize(series[, index])

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

validate_params(params)

Attributes

api_key_resource

name