Browse Source

Merge pull request #523 from swharden/patch-1

ChatSession: improve exception message
tags/0.11.0
Martin Evans GitHub 1 year ago
parent
commit
3d7bf4287c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      LLama/ChatSession.cs

+ 1
- 1
LLama/ChatSession.cs View File

@@ -196,7 +196,7 @@ public class ChatSession
if (lastMessage is null
|| lastMessage.AuthorRole != AuthorRole.User)
{
throw new ArgumentException("Assistant message must be preceeded with a user message", nameof(message));
throw new ArgumentException("Assistant message must be preceded with a user message", nameof(message));
}
}



Loading…
Cancel
Save