From 06fab4bb17645a3ee65fe6d73f130be396d86f16 Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Mon, 7 Oct 2024 22:33:07 +0100 Subject: [PATCH] Fixed build failure after merging binary update --- LLama.Examples/Examples/LLama2ChatSession.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LLama.Examples/Examples/LLama2ChatSession.cs b/LLama.Examples/Examples/LLama2ChatSession.cs index 8d6c2921e..880b7076c 100644 --- a/LLama.Examples/Examples/LLama2ChatSession.cs +++ b/LLama.Examples/Examples/LLama2ChatSession.cs @@ -17,7 +17,6 @@ public static async Task Run() var modelPath = UserSettings.GetModelPath(); var parameters = new ModelParams(modelPath) { - Seed = 1337, GpuLayerCount = 10 }; @@ -25,7 +24,7 @@ public static async Task Run() using var context = model.CreateContext(parameters); var executor = new InteractiveExecutor(context); - var chatHistoryJson = File.ReadAllText("Assets/chat-with-bob.json"); + var chatHistoryJson = await File.ReadAllTextAsync("Assets/chat-with-bob.json"); var chatHistory = ChatHistory.FromJson(chatHistoryJson) ?? new ChatHistory(); ChatSession session = new(executor, chatHistory);