You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 809f8ec
Browse filesBrowse the repository at this point in the historyBrowse files
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.
Copy file name to clipboardExpand all lines: dashscope/acli/examples/dashscope-sdk-expert/.acli/skills/text-generation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Before answering, verify the user's SDK version and signature: `python -c "impor
10
10
## Applicable Models and Scenarios
11
11
12
12
- 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.
14
14
- 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.
15
15
-`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.
16
16
- Do not use this API for multimodal; use `MultiModalConversation`.
@@ -75,7 +75,7 @@ from dashscope import Generation
75
75
dashscope.api_key ="sk-xxx"# or set env var DASHSCOPE_API_KEY
76
76
77
77
# Non-streaming
78
-
resp = Generation.call(model="qwen-plus",
78
+
resp = Generation.call(model="qwen3.7-plus",
79
79
messages=[{"role": "user", "content": "Hello"}],
80
80
result_format="message")
81
81
if resp.status_code == HTTPStatus.OK:
@@ -84,7 +84,7 @@ else:
84
84
print(resp.request_id, resp.code, resp.message)
85
85
86
86
# Streaming (incremental output)
87
-
for r in Generation.call(model="qwen-plus",
87
+
for r in Generation.call(model="qwen3.7-plus",
88
88
messages=[{"role": "user", "content": "Write a short poem"}],
89
89
result_format="message", stream=True,
90
90
incremental_output=True):
@@ -96,7 +96,7 @@ for r in Generation.call(model="qwen-plus",
0 commit comments