← 返回
未分类 Key

Aliyun Use

Aliyun Bailian(百炼) for LLM chat, and language translation. Use when you need to generate code, generate text with LLMs, or translate between languages.
Aliyun Bailian(百炼) for LLM chat, and language translation. Use when you need to generate code, generate text with LLMs, or translate between languages.
cnlangzi cnlangzi 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 398
下载
💾 1
安装
1
版本
#latest

概述

Aliyun Bailian(百炼) for OpenClaw

Call Alibaba Cloud Bailian (百炼) LLM models via the DashScope API.

Setup

Get your API key from: https://bailian.console.aliyun.com/

Set the environment variable:

export ALIYUN_BAILIAN_API_KEY="your-api-key"
export ALIYUN_BAILIAN_API_HOST="https://coding.dashscope.aliyuncs.com/apps/anthropic"  # optional, default provided

CLI Commands

python -m scripts chat --model qwen3.5-plus --messages '[{"role": "user", "content": "Hello"}]'
python -m scripts translate --text "Hello" --target-lang zh
python -m scripts models

Commands Overview

CommandWhat it does
----------------------
chatGeneral-purpose chat completion with Qwen, GLM, Kimi, MiniMax models
translateTranslate text between languages
modelsList all available models

Chat

General-purpose chat completion via DashScope Anthropic API.

Usage

python -m scripts chat --model qwen3.5-plus --messages '[{"role": "user", "content": "Hello"}]'

Parameters

  • --model (string, optional) — Model name. Default: qwen3.5-plus
  • --messages (string, required) — JSON array of {role, content}. Roles: system, user, assistant
  • --temperature (float, optional) — Sampling temperature 0-1. Default: 0.7
  • --max-tokens (integer, optional) — Max tokens to generate. Default: 2048
  • --stream (boolean, optional) — Enable streaming. Default: false

Available Models

Flagship: qwen3.5-plus, qwen3-max-2026-01-23

Coder: qwen3-coder-next, qwen3-coder-plus

Other: glm-5, glm-4.7, kimi-k2.5, MiniMax-M2.5

Translate

Translate text between languages using the LLM.

Usage

python -m scripts translate --text "Hello" --target-lang zh
python -m scripts translate --text "你好" --target-lang en --source-lang zh

Parameters

  • --text (string, required) — Text to translate
  • --target-lang (string, optional) — Target language code. Default: en
  • --source-lang (string, optional) — Source language code. Default: auto

Supported Languages

en (English), zh (Chinese), ja (Japanese), ko (Korean), es (Spanish), fr (French), de (German), ru (Russian), ar (Arabic), pt (Portuguese), it (Italian), th (Thai), vi (Vietnamese), id (Indonesian)

Python Usage

from scripts import chat, translate

# Chat
result = chat(messages=[{"role": "user", "content": "Hello"}], model="qwen3.5-plus")

# Translate
result = translate(text="Hello", target_lang="zh")

Response Format

{ "success": true, "result": {...} }
{ "success": false, "error": "error message" }

Notes

  • Default API host: https://coding.dashscope.aliyuncs.com/apps/anthropic (set via ALIYUN_BAILIAN_API_HOST)
  • The API uses Anthropic-compatible format — messages are converted to Anthropic API format internally
  • Coding Plan API key (sk-sp-xxx) is different from regular DashScope API key
  • For reasoning tasks: try qwen3-max-2026-01-23 or kimi-k2.5
  • For coding tasks: use qwen3-coder-next or qwen3-coder-plus

Learn More

  • Full API documentation: references/API.md
  • Available models: assets/models.json

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-31 00:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 859 📥 339,768
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,507 📥 566,880
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,153 📥 925,222