Skip to content

Commit

Permalink
Merge pull request #627 from WolframResearch/534-the-string-image-sen…
Browse files Browse the repository at this point in the history
…tinel-frequently-shows-up-in-gpt-4-vision-responses

Automatically remove the string `"<|image_sentinel|>"` from chat outputs
  • Loading branch information
rhennigan authored Mar 16, 2024
2 parents 6e5b444 + 620e842 commit 44c656a
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 44c656a

Please sign in to comment.