Skip to contents

此函数用于在智谱AI平台上创建一个新的批处理任务

Usage

zhipuai_batch_create(
  file_id,
  job_description = "Batch Task",
  endpoint = "/v4/chat/completions",
  api_key = Sys.getenv("ZHIPUAI_API_KEY")
)

zhipuai_batch_submit(
  file_id,
  job_description = "Batch Task",
  endpoint = "/v4/chat/completions",
  api_key = Sys.getenv("ZHIPUAI_API_KEY")
)

Arguments

file_id

已上传文件的ID

job_description

字符串,批处理任务的描述,默认为"Batch Task"

endpoint

字符串,API端点,默认为"/v4/chat/completions"

api_key

智谱AI的API密钥,默认从环境变量ZHIPUAI_API_KEY中获取

Value

返回创建成功的批处理任务ID