Fix content concatenation in commit_cases.py

This commit is contained in:
bobo.yang 2024-01-30 18:09:12 +08:00
parent b0729ecff9
commit e4cda90112

View File

@ -157,7 +157,7 @@ code change diff:
content = '' content = ''
for chunk in response: for chunk in response:
content += chunk.choices[0].delta.content content += (chunk.choices[0].delta.content or "")
print('AI says:', content) print('AI says:', content)
return compare_result_parser(content) return compare_result_parser(content)