fix: Use System Prompt from user configuration (#454) (#455)

This commit is contained in:
Rene Leonhardt 2024-04-15 10:42:42 +02:00 committed by GitHub
parent 0dfaa128b7
commit 5f16213bd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 44 additions and 38 deletions

View file

@ -94,7 +94,7 @@ public class ConfigurationComponent {
maxTokensField.setValue(configuration.getMaxTokens());
systemPromptTextArea = new JTextArea();
if (configuration.getSystemPrompt().isEmpty()) {
if (configuration.getSystemPrompt().isBlank()) {
// for backward compatibility
systemPromptTextArea.setText(COMPLETION_SYSTEM_PROMPT);
} else {