diff --git a/LLama.Examples/Examples/LLama2ChatSession.cs b/LLama.Examples/Examples/LLama2ChatSession.cs index 8d6c2921..880b7076 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);