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.
2929``` csharp
3030var client = new DashScopeClient (" your-api-key" );
3131var completion = await client .GetQWenCompletionAsync (QWenLlm .QWenMax , prompt );
32+ // or pass the model name string directly.
33+ // var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
3234Console .WriteLine (completion .Output .Text );
3335```
3436
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Console.WriteLine(completion)
2929``` csharp
3030var client = new DashScopeClient (" your-api-key" );
3131var completion = await client .GetQWenCompletionAsync (QWenLlm .QWenMax , prompt );
32+ // 也可以直接输入模型名称进行调用
33+ // var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
3234Console .WriteLine (completion .Output .Text );
3335```
3436
You can’t perform that action at this time.
0 commit comments