Browse Source

Using the right context for Bob

tags/v0.5.1
Martin Evans 2 years ago
parent
commit
f31bdf6b93
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      LLama.Examples/NewVersion/TalkToYourself.cs

+ 2
- 2
LLama.Examples/NewVersion/TalkToYourself.cs View File

@@ -39,13 +39,13 @@ namespace LLama.Examples.NewVersion

// Initial bob prompt
var bobPrompt = $"Transcript of a dialog, where the Bob interacts a person named Alice. Bob is smart, intellectual and good at writing.\nAlice: Hello{aliceResponse}";
var bobResponse = await Prompt(alice, ConsoleColor.Red, bobPrompt, true, true);
var bobResponse = await Prompt(bob, ConsoleColor.Red, bobPrompt, true, true);

// swap back and forth from Alice to Bob
while (true)
{
aliceResponse = await Prompt(alice, ConsoleColor.Green, bobResponse, false, true);
bobResponse = await Prompt(alice, ConsoleColor.Red, aliceResponse, false, true);
bobResponse = await Prompt(bob, ConsoleColor.Red, aliceResponse, false, true);
Thread.Sleep(1000);
}
}


Loading…
Cancel
Save