Skip to content

Commit

Permalink
Update LmKitService.RequestSchedule.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Nov 29, 2024
1 parent 23236e5 commit 8a9155c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LM-Kit-Maestro/Services/LmKitService.RequestSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ public void Remove(LMKitRequest scheduledPrompt)
{
foreach (var scheduledPrompt in _scheduledPrompts)
{
if (scheduledPrompt.Parameters is LMKitRequest.PromptRequestParameters parameter && parameter.Conversation == conversation)
if (scheduledPrompt.Parameters is LMKitRequest.PromptRequestParameters promptParameters && promptParameters.Conversation == conversation)
{
prompt = scheduledPrompt;
break;
}
else if (scheduledPrompt.Parameters is LMKitRequest.RegenerateResponseParameters regenerateParameters && regenerateParameters.Conversation == conversation)
{
prompt = scheduledPrompt;
break;
Expand Down

0 comments on commit 8a9155c

Please sign in to comment.