File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Install `Cnblogs.DashScope.Sdk` package.
29
29
``` csharp
30
30
var client = new DashScopeClient (" your-api-key" );
31
31
var completion = await client .GetQWenCompletionAsync (QWenLlm .QWenMax , prompt );
32
+ // or pass the model name string directly.
33
+ // var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
32
34
Console .WriteLine (completion .Output .Text );
33
35
```
34
36
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Console.WriteLine(completion)
29
29
``` csharp
30
30
var client = new DashScopeClient (" your-api-key" );
31
31
var completion = await client .GetQWenCompletionAsync (QWenLlm .QWenMax , prompt );
32
+ // 也可以直接输入模型名称进行调用
33
+ // var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
32
34
Console .WriteLine (completion .Output .Text );
33
35
```
34
36
You can’t perform that action at this time.
0 commit comments