From 7b7d9ea00a241852e576c8392196e592b7410989 Mon Sep 17 00:00:00 2001 From: Sarmisuper Date: Mon, 11 Nov 2024 15:34:21 +0100 Subject: [PATCH] Linter --- ChatRPG/API/Tools/ToolUtilities.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ChatRPG/API/Tools/ToolUtilities.cs b/ChatRPG/API/Tools/ToolUtilities.cs index c82d9bc..7d27413 100644 --- a/ChatRPG/API/Tools/ToolUtilities.cs +++ b/ChatRPG/API/Tools/ToolUtilities.cs @@ -50,9 +50,9 @@ public class ToolUtilities(IConfiguration configuration) query.Length--; // Remove last comma query.Append("\n]}"); - + query.Append($"\n\nThe player is {campaign.Player.Name}. First-person pronouns refer to them."); - + query.Append($"\n\nFind the character using the following content: {input}."); var response = await llm.GenerateAsync(query.ToString()); @@ -60,7 +60,8 @@ public class ToolUtilities(IConfiguration configuration) try { var llmResponseCharacter = - JsonSerializer.Deserialize(ResponseCleaner.RemoveMarkdown(response.ToString()), JsonOptions); + JsonSerializer.Deserialize(ResponseCleaner.RemoveMarkdown(response.ToString()), + JsonOptions); if (llmResponseCharacter is null) return null; @@ -85,4 +86,4 @@ public class ToolUtilities(IConfiguration configuration) return null; // Format was unexpected } } -} +} \ No newline at end of file