Dynamic Answer class and OpenAI streaming API #19

Merged
juk0de merged 3 commits from dynamic_answer into main 2023-10-21 15:50:46 +02:00
Showing only changes of commit bbc1ab5a0a - Show all commits
+1 -1
View File
@@ -51,7 +51,7 @@ def source_code(text: str, include_delims: bool = False) -> list[str]:
code_lines: list[str] = [] code_lines: list[str] = []
in_code_block = False in_code_block = False
for line in text.split('\n'): for line in str(text).split('\n'):
if line.strip().startswith('```'): if line.strip().startswith('```'):
if include_delims: if include_delims:
code_lines.append(line) code_lines.append(line)