Browse Source

Fix documentation according to the changes in newer versions

tags/0.9.1
Aleksei Smirnov 1 year ago
parent
commit
8558d109b4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      docs/ChatSession/basic-usages.md
  2. +1
    -1
      docs/GetStarted.md

+ 1
- 1
docs/ChatSession/basic-usages.md View File

@@ -18,7 +18,7 @@ There'll be two kinds of input accepted by the `Chat` API, which are `ChatHistor
```cs
string prompt = "What is C#?";

foreach (var text in session.Chat(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List<string> { "User:" } })) // the inference params should be changed depending on your statement
await foreach (var text in session.ChatAsync(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List<string> { "User:" } })) // the inference params should be changed depending on your statement
{
Console.Write(text);
}


+ 1
- 1
docs/GetStarted.md View File

@@ -73,7 +73,7 @@ Console.Write(prompt);
// run the inference in a loop to chat with LLM
while (true)
{
foreach (var text in session.Chat(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List<string> { "User:" } }))
await foreach (var text in session.ChatAsync(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List<string> { "User:" } }))
{
Console.Write(text);
}


Loading…
Cancel
Save