Skip to content

Commit

Permalink
Merge pull request #103 from infinitelydense/dry-ooba-fix
Browse files Browse the repository at this point in the history
remove automatic json parsing and update error check
  • Loading branch information
lmg-anon authored Dec 15, 2024
2 parents b05fe94 + dc040a2 commit 30cb897
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -5938,7 +5938,9 @@
dry_base: dryBase,
dry_allowed_length: dryAllowedLength,
dry_penalty_last_n: dryPenaltyRange,
dry_sequence_breakers: JSON.parse(drySequenceBreakers),
dry_sequence_breakers: endpointAPI == API_OPENAI_COMPAT ?
drySequenceBreakers :
JSON.parse(drySequenceBreakers),
}: {}),
...(enabledSamplers.includes('ban_tokens') ? {
banned_tokens: JSON.parse(bannedTokens),
Expand Down

0 comments on commit 30cb897

Please sign in to comment.