返回顶部
a

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
134
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aliyun-use

阿里云百炼 for OpenClaw

通过DashScope API调用阿里云百炼大语言模型。

设置

从以下地址获取您的API密钥:https://bailian.console.aliyun.com/

设置环境变量:
bash
export ALIYUNBAILIANAPI_KEY=your-api-key
export ALIYUNBAILIANAPI_HOST=https://coding.dashscope.aliyuncs.com/apps/anthropic # 可选,默认已提供

CLI命令

bash
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

命令概览

命令功能说明
chat使用Qwen、GLM、Kimi、MiniMax模型进行通用对话补全
translate
在语言之间翻译文本 | | models | 列出所有可用模型 |

对话

通过DashScope Anthropic API进行通用对话补全。

使用方法

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

参数

  • - --model(字符串,可选)— 模型名称。默认值:qwen3.5-plus
  • --messages(字符串,必填)— {role, content}的JSON数组。角色:system、user、assistant
  • --temperature(浮点数,可选)— 采样温度0-1。默认值:0.7
  • --max-tokens(整数,可选)— 生成的最大令牌数。默认值:2048
  • --stream(布尔值,可选)— 启用流式输出。默认值:false

可用模型

旗舰版: qwen3.5-plus、qwen3-max-2026-01-23

编程版: qwen3-coder-next、qwen3-coder-plus

其他: glm-5、glm-4.7、kimi-k2.5、MiniMax-M2.5

翻译

使用大语言模型在语言之间翻译文本。

使用方法

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

参数

  • - --text(字符串,必填)— 要翻译的文本
  • --target-lang(字符串,可选)— 目标语言代码。默认值:en
  • --source-lang(字符串,可选)— 源语言代码。默认值:auto

支持的语言

en(英语)、zh(中文)、ja(日语)、ko(韩语)、es(西班牙语)、fr(法语)、de(德语)、ru(俄语)、ar(阿拉伯语)、pt(葡萄牙语)、it(意大利语)、th(泰语)、vi(越南语)、id(印尼语)

Python使用

python
from scripts import chat, translate

对话

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

翻译

result = translate(text=Hello, target_lang=zh)

响应格式

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

注意事项

  • - 默认API主机:https://coding.dashscope.aliyuncs.com/apps/anthropic(通过ALIYUNBAILIANAPI_HOST设置)
  • API使用兼容Anthropic的格式——消息会在内部转换为Anthropic API格式
  • 编程计划API密钥(sk-sp-xxx)与常规DashScope API密钥不同
  • 推理任务:尝试qwen3-max-2026-01-23或kimi-k2.5
  • 编程任务:使用qwen3-coder-next或qwen3-coder-plus

了解更多

  • - 完整API文档:references/API.md
  • 可用模型:assets/models.json

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aliyun-use-1776097322 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aliyun-use-1776097322 技能

通过命令行安装

skillhub install aliyun-use-1776097322

下载

⬇ 下载 aliyun-use v0.1.0(免费)

文件大小: 9.19 KB | 发布时间: 2026-4-17 14:03

v0.1.0 最新 2026-4-17 14:03
Initial release – provides Alibaba Cloud Bailian (百炼) LLM chat and translation features via CLI and Python.

- Supports chat completion with Qwen, GLM, Kimi, and MiniMax models.
- Enables language translation between major languages.
- Environment-based configuration using ALIYUN_BAILIAN_API_KEY.
- Simple CLI commands for chat, translation, and model listing.
- Anthropic-compatible message format and response handling.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部