支持gpt-4-vision-preview

This commit is contained in:
binary-husky
2023-11-13 13:10:15 +08:00
parent f03aa8713d
commit 9a21e13d33
3 changed files with 347 additions and 2 deletions

View File

@@ -279,9 +279,12 @@ def text_divide_paragraph(text):
if '```' in text:
# careful input
return pre + text + suf
return text
elif '</div>' in text:
# careful input
return text
else:
# wtf input
# whatever input
lines = text.split("\n")
for i, line in enumerate(lines):
lines[i] = lines[i].replace(" ", "&nbsp;")