From 59af1415d56424a78f97bf34b347e7cb5d3938ce Mon Sep 17 00:00:00 2001 From: BeepBeepBopBop Date: Thu, 21 Nov 2024 13:51:44 +0100 Subject: [PATCH] fix typos --- .../Services/LMKitService.Conversation.cs | 14 +++++++------- LM-Kit-Maestro/Services/LMKitService.cs | 4 ++-- LM-Kit-Maestro/UI/ChatView.xaml | 2 +- LM-Kit-Maestro/UI/Pages/ChatPage.xaml | 4 ++-- LM-Kit-Maestro/UI/Razor/Components/UserInput.razor | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/LM-Kit-Maestro/Services/LMKitService.Conversation.cs b/LM-Kit-Maestro/Services/LMKitService.Conversation.cs index 249c5ea..5ad8c0b 100644 --- a/LM-Kit-Maestro/Services/LMKitService.Conversation.cs +++ b/LM-Kit-Maestro/Services/LMKitService.Conversation.cs @@ -113,21 +113,21 @@ public void SetGeneratedTitle(PromptResult textGenerationResult) if (textGenerationResult.TextGenerationResult != null && !string.IsNullOrEmpty(textGenerationResult.TextGenerationResult.Completion)) { - foreach (var sentance in textGenerationResult.TextGenerationResult.Completion.Split('\n')) + foreach (var sentence in textGenerationResult.TextGenerationResult.Completion.Split('\n')) { - if (sentance.ToLower().StartsWith("topic")) + if (sentence.ToLower().StartsWith("topic")) { - conversationTopic = sentance.Substring("topic".Length, sentance.Length - "topic".Length); + conversationTopic = sentence.Substring("topic".Length, sentence.Length - "topic".Length); break; } - else if (sentance.ToLower().StartsWith("the topic of the sentance is")) + else if (sentence.ToLower().StartsWith("the topic of the sentence is")) { - conversationTopic = sentance.Substring("the topic of the sentance is".Length, sentance.Length - "the topic of the sentance is".Length); + conversationTopic = sentence.Substring("the topic of the sentence is".Length, sentence.Length - "the topic of the sentence is".Length); break; } - else if (sentance.ToLower().StartsWith("the topic of this sentance is")) + else if (sentence.ToLower().StartsWith("the topic of this sentence is")) { - conversationTopic = sentance.Substring("the topic of this sentance is".Length, sentance.Length - "the topic of this sentance is".Length); + conversationTopic = sentence.Substring("the topic of this sentence is".Length, sentence.Length - "the topic of this sentence is".Length); break; } } diff --git a/LM-Kit-Maestro/Services/LMKitService.cs b/LM-Kit-Maestro/Services/LMKitService.cs index fede9b1..bc08382 100644 --- a/LM-Kit-Maestro/Services/LMKitService.cs +++ b/LM-Kit-Maestro/Services/LMKitService.cs @@ -384,7 +384,7 @@ private void GenerateConversationSummaryTitle(Conversation conversation, string try { - string titleSummaryPrompt = $"What is the topic of the following sentance: {prompt}"; + string titleSummaryPrompt = $"What is the topic of the following sentence: {prompt}"; promptResult.TextGenerationResult = await _singleTurnConversation!.SubmitAsync(titleSummaryPrompt, titleGenerationRequest.CancellationTokenSource.Token); } @@ -451,7 +451,7 @@ private void BeforeSubmittingPrompt(Conversation conversation) MaximumContextLength = 512, MaximumCompletionTokens = 50, SamplingMode = new GreedyDecoding(), - SystemPrompt = "You receive a sentance. You are to summarize, with a single sentance containing a maximum of 10 words, the topic of this sentance. You start your answer with 'topic:'" + SystemPrompt = "You receive a sentence. You are to summarize, with a single sentence containing a maximum of 10 words, the topic of this sentence. You start your answer with 'topic:'" //SystemPrompt = "You receive one question and one response taken from a conversation, and you are to provide, with a maximum of 10 words, a summary of the conversation topic." }; } diff --git a/LM-Kit-Maestro/UI/ChatView.xaml b/LM-Kit-Maestro/UI/ChatView.xaml index 2af73c3..31432e5 100644 --- a/LM-Kit-Maestro/UI/ChatView.xaml +++ b/LM-Kit-Maestro/UI/ChatView.xaml @@ -68,7 +68,7 @@ - + diff --git a/LM-Kit-Maestro/UI/Pages/ChatPage.xaml b/LM-Kit-Maestro/UI/Pages/ChatPage.xaml index 50224fb..73103e0 100644 --- a/LM-Kit-Maestro/UI/Pages/ChatPage.xaml +++ b/LM-Kit-Maestro/UI/Pages/ChatPage.xaml @@ -26,7 +26,7 @@ - - +