Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
9ad196c5
Commit
9ad196c5
authored
Apr 30, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use random no-response message if Short Greeting is missing.
parent
0511f9e1
Pipeline
#12069
passed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ChatDataManager.java
src/main/java/com/owlmaddie/chat/ChatDataManager.java
+3
-0
No files found.
src/main/java/com/owlmaddie/chat/ChatDataManager.java
View file @
9ad196c5
...
...
@@ -239,6 +239,9 @@ public class ChatDataManager {
// Add NEW CHARACTER sheet & greeting
this
.
characterSheet
=
output_message
;
String
shortGreeting
=
getCharacterProp
(
"short greeting"
);
if
(
shortGreeting
.
isEmpty
())
{
shortGreeting
=
Randomizer
.
getRandomMessage
(
Randomizer
.
RandomType
.
NO_RESPONSE
);
}
this
.
addMessage
(
shortGreeting
.
replace
(
"\n"
,
" "
),
ChatSender
.
ASSISTANT
,
player
.
getUuidAsString
());
}
else
if
(
output_message
!=
null
&&
systemPrompt
==
"system-chat"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment