Skip to content

Commit

Permalink
doc: adds example for model names that not in presets
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesnowy committed Dec 14, 2024
1 parent 55b3b78 commit c85b430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Install `Cnblogs.DashScope.Sdk` package.
```csharp
var client = new DashScopeClient("your-api-key");
var completion = await client.GetQWenCompletionAsync(QWenLlm.QWenMax, prompt);
// or pass the model name string directly.
// var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
Console.WriteLine(completion.Output.Text);
```

Expand Down
2 changes: 2 additions & 0 deletions README.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Console.WriteLine(completion)
```csharp
var client = new DashScopeClient("your-api-key");
var completion = await client.GetQWenCompletionAsync(QWenLlm.QWenMax, prompt);
// 也可以直接输入模型名称进行调用
// var completion = await client.GetQWenCompletionAsync("qwen-max", prompt);
Console.WriteLine(completion.Output.Text);
```

Expand Down

0 comments on commit c85b430

Please sign in to comment.