Refactored default system prompt

This commit is contained in:
Thorsten Sommer 2024-08-18 15:53:31 +02:00
parent 82ba07165e
commit 19ed2d42c0
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
namespace AIStudio.Chat;
public static class SystemPrompts
{
public const string DEFAULT = "You are a helpful assistant!";
}

View File

@ -93,7 +93,7 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
ChatId = Guid.NewGuid(),
Name = threadName,
Seed = this.RNG.Next(),
SystemPrompt = "You are a helpful assistant!",
SystemPrompt = SystemPrompts.DEFAULT,
Blocks = [],
};
}