Skip to content

Commit

Permalink
fix markdown issue
Browse files Browse the repository at this point in the history
  • Loading branch information
deleolajide committed Jan 5, 2024
1 parent aa50eba commit ea06ac3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/java/org/ifsoft/llama/openfire/LLaMAConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ private String getJson(String urlToRead, JSONObject data, JID requestor, Message

if (!lineJson.getBoolean("stop")) { // we got a text stream
String content = lineJson.getString("content");

result.append(content);

if (content.equals("\n")) {
String msg = result.toString();
Log.info("getJson - chat\n" + msg);
Expand All @@ -411,7 +412,6 @@ private String getJson(String urlToRead, JSONObject data, JID requestor, Message
}

} else {
result.append(content);

if (requestor != null) {
replyState("composing", requestor, chatType);
Expand All @@ -427,9 +427,7 @@ private String getJson(String urlToRead, JSONObject data, JID requestor, Message
replyChat(msg, requestor, chatType);
accumulator = accumulator + msg;
}
}
} else {

}
}
}
rd.close();
Expand Down

0 comments on commit ea06ac3

Please sign in to comment.