Skip to content

Commit

Permalink
DRY: Fixed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoodsTM committed Oct 24, 2024
1 parent 0ec8473 commit 1303893
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,6 @@ struct server_context {
// Currently, this is not compatible with TextGen WebUI, Koboldcpp and SillyTavern format
// Ref: https://github.com/oobabooga/text-generation-webui/blob/d1af7a41ade7bd3c3a463bfa640725edb818ebaf/extensions/openai/typing.py#L39

auto dry_sequence_breakers = data.find("dry_sequence_breakers");
if (data.contains("dry_sequence_breakers")) {
slot.sparams.dry_sequence_breakers = json_value(data, "dry_sequence_breakers", std::vector<std::string>());
if (slot.sparams.dry_sequence_breakers.empty()) {
Expand Down

0 comments on commit 1303893

Please sign in to comment.