mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
extract \n from FIM
This commit is contained in:
@@ -153,6 +153,7 @@ export const extractCodeFromFIM = ({ text, recentlyAddedTextLen, midTag, }: { te
|
||||
const foundMid = pm.removePrefix(`<${midTag}>`)
|
||||
|
||||
if (foundMid) {
|
||||
pm.removeSuffix(`\n`) // sometimes outputs \n
|
||||
pm.removeSuffix(`</${midTag}>`)
|
||||
}
|
||||
const s = pm.value()
|
||||
|
||||
Reference in New Issue
Block a user