Skip to content

Commit 809f8ec

Browse files
author
zhansheng.lzs
committed
acli: sync examples naming from agenticCLI-examples
qwen3.8-flash / qwen3.7-plus naming across basic-chat and dashscope-sdk-expert configs, README and skills.
1 parent f826759 commit 809f8ec

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎dashscope/acli/examples/basic-chat/.acli/custom-extensions.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ models = [
2424
"qwen3.8-max",
2525
"qwen3.7-max",
2626
"qwen3.7-plus",
27-
"qwen3.8-32b",
27+
"qwen3.8-flash",
2828
"qwen3-vl-flash",
2929
"qwen3-vl-plus",
3030
]
@@ -49,8 +49,8 @@ protocol = "openai"
4949
# [[providers]]
5050
# name = "ollama"
5151
# base_url = "http://localhost:11434/v1"
52-
# default_model = "qwen3.8-27b"
53-
# models = ["qwen3.8-27b", "mistral"]
52+
# default_model = "qwen3.8-flash"
53+
# models = ["qwen3.8-flash", "mistral"]
5454
# protocol = "openai"
5555
# auth = false # local service, no API key needed
5656

‎dashscope/acli/examples/basic-chat/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ name = "tongyi"
5252
base_url = "https://dashscope.aliyuncs.com/compatible-mode/v1"
5353
api_key_env = "DASHSCOPE_API_KEY" # ← stores only the env var name; the shell provides sk-xxx
5454
default_model = "qwen3.8-max"
55-
models = ["qwen3.8-max", "qwen3.7-max", "qwen3.7-plus", "qwen3.8-32b", "qwen3-vl-flash"]
55+
models = ["qwen3.8-max", "qwen3.7-max", "qwen3.7-plus", "qwen3.8-flash", "qwen3-vl-flash"]
5656
vision_models = ["qwen3-vl-flash"] # ← tells acli these models accept image input
5757
protocol = "openai" # ← openai / anthropic / dashscope
5858
```

‎dashscope/acli/examples/dashscope-sdk-expert/.acli/custom-extensions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ models = [
1515
"qwen3.8-max",
1616
"qwen3.7-max",
1717
"qwen3.7-plus",
18-
"qwen3.8-32b",
18+
"qwen3.8-flash",
1919
"qwen3-vl-flash",
2020
"qwen3-vl-plus",
2121
]

‎dashscope/acli/examples/dashscope-sdk-expert/.acli/skills/agent.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ else:
5555
from dashscope.agentstudio import Client
5656
from dashscope.agentstudio.types import user_message
5757
client = Client(api_key="sk-xxx", workspace="my-ws")
58-
agent = client.agents.create(name="demo", model="qwen3-235b-a22b-instruct-2507")
58+
agent = client.agents.create(name="demo", model="qwen3.8-flash")
5959
session = client.sessions.create(agent=agent.id)
6060
client.sessions.events.send(session.id, [user_message("Hello!")])
6161
with client.sessions.events.stream(session.id) as stream:

‎dashscope/acli/examples/dashscope-sdk-expert/.acli/skills/cli.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ Prerequisite: `export DASHSCOPE_API_KEY=sk-xxx` (or pass the global `-k/--api-ke
4141
dashscope auth whoami # verify the active key against the API and show its source
4242
dashscope auth login --key sk-xxx # save a key to ~/.dashscope/api_key
4343
dashscope auth logout # remove the saved key file
44-
dashscope generation create -m qwen-plus -p "Hello" -s --temperature 0.7
44+
dashscope generation create -m qwen3.7-plus -p "Hello" -s --temperature 0.7
4545
dashscope ft create -m qwen3.8-32b -t file-xxx -v file-yyy -e 2 -b 16 -l 1e-5
4646
dashscope files upload -f train.jsonl -p fine-tune -d "training set"
4747
dashscope deployments create -m qwen3.8-32b -s demo -c 1
48-
dashscope oss upload -m qwen-plus -f ./pic.png
48+
dashscope oss upload -m qwen3.7-plus -f ./pic.png
4949
dashscope rerank create -m gte-rerank -q "query" -d doc1 -d doc2 -n 3
5050
dashscope embeddings create -m text-embedding-v3 -i "text1" -i "text2"
51-
dashscope tokenization create -m qwen3.8-32b -p "text to count"
51+
dashscope tokenization create -m qwen3.8-flash -p "text to count"
5252
dashscope models list -p 1 -s 20
5353
dashscope application create -a APP_ID -p "question" --has-thoughts
5454
dashscope image-synthesis create -m qwen-image-3.0 -p "a cat" -n 2 --size 1024*1024

‎dashscope/acli/examples/dashscope-sdk-expert/.acli/skills/text-generation.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Before answering, verify the user's SDK version and signature: `python -c "impor
1010
## Applicable Models and Scenarios
1111

1212
- Entry point `dashscope.Generation` (sync) / `dashscope.AioGeneration` (async, both top-level exports in `dashscope/__init__.py`), `task = "text-generation"`.
13-
- Plain text chat/continuation: qwen series (e.g. `qwen-plus`, `qwen3.8-32b`). `Generation.Models` only carries a few legacy constants; pass the current model name as a plain string.
13+
- Plain text chat/continuation: qwen series (e.g. `qwen3.7-plus`, `qwen3.8-flash`). `Generation.Models` only carries a few legacy constants; pass the current model name as a plain string.
1414
- The `model` parameter is just a `str`; the SDK does not validate against a whitelist. For new models like qwen3, pass the model name string directly; refer to the console/docs for exact names.
1515
- `enable_search` is only supported when `model` starts with `"qwen"`; when it starts with `"bailian"` you must pass `customized_model_id`, otherwise `InputRequired` is raised.
1616
- Do not use this API for multimodal; use `MultiModalConversation`.
@@ -75,7 +75,7 @@ from dashscope import Generation
7575
dashscope.api_key = "sk-xxx" # or set env var DASHSCOPE_API_KEY
7676

7777
# Non-streaming
78-
resp = Generation.call(model="qwen-plus",
78+
resp = Generation.call(model="qwen3.7-plus",
7979
messages=[{"role": "user", "content": "Hello"}],
8080
result_format="message")
8181
if resp.status_code == HTTPStatus.OK:
@@ -84,7 +84,7 @@ else:
8484
print(resp.request_id, resp.code, resp.message)
8585

8686
# Streaming (incremental output)
87-
for r in Generation.call(model="qwen-plus",
87+
for r in Generation.call(model="qwen3.7-plus",
8888
messages=[{"role": "user", "content": "Write a short poem"}],
8989
result_format="message", stream=True,
9090
incremental_output=True):
@@ -96,7 +96,7 @@ for r in Generation.call(model="qwen-plus",
9696
# OpenAI-compatible
9797
from openai import OpenAI
9898
client = OpenAI(api_key=dashscope.api_key, base_url=dashscope.base_compatible_api_url)
99-
print(client.chat.completions.create(model="qwen-plus",
99+
print(client.chat.completions.create(model="qwen3.7-plus",
100100
messages=[{"role": "user", "content": "Hello"}]).choices[0].message.content)
101101
```
102102

@@ -132,7 +132,7 @@ import com.alibaba.dashscope.aigc.generation.*;
132132

133133
Generation gen = new Generation();
134134
GenerationParam param = GenerationParam.builder()
135-
.model("qwen-plus")
135+
.model("qwen3.7-plus")
136136
.messages(java.util.Arrays.asList(
137137
Message.builder().role("user").content("Hello").build()))
138138
.resultFormat("message")

0 commit comments

Comments
 (0)