Skip to content

Commit

Permalink
Automatically remove the string "<|image_sentinel|>" from chat outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Mar 16, 2024
1 parent e18432a commit 620e842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Chatbook/SendChat.wl
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ $llmAutoCorrectRules = Flatten @ {
"<" ~~ Shortest[ scheme: LetterCharacter.. ~~ "://" ~~ id: Except[ "!" ].. ] ~~ ">" :>
"<!" <> scheme <> "://" <> id <> "!>",
"\\uf351" -> "\[FreeformPrompt]",
"\n<|image_sentinel|>\n" :> "\n",
"<|image_sentinel|>" :> "",
$longNameCharacters
};

Expand Down

0 comments on commit 620e842

Please sign in to comment.