DashScope icon

DashScope

调用阿里云 DashScope (通义千问) API

聊天补全

AI-generated

Summary

Execute a DashScope chat completion request using the specified model, system prompt, and optional parameters.

Inputs

  • main — Input items consumed per iteration; each item's parameters are used to build the API request.

Output shape

main

Returns an array of execution meta-data objects, each containing the AI response content, model, usage, and the full raw API response.

Examples

Example 1: Basic chat completion with default model and prompt

Use Qwen Plus, default system prompt, and a user message. All optional params (temperature, maxTokens, topP) omitted; defaults applied server‑side.

Links

Discussion