From e4cda90112e50fd525dbbc16637b5abcc0fb1725 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Tue, 30 Jan 2024 18:09:12 +0800 Subject: [PATCH] Fix content concatenation in commit_cases.py --- test/workflows/commit_cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/workflows/commit_cases.py b/test/workflows/commit_cases.py index 2ac3ca9..375f6d3 100644 --- a/test/workflows/commit_cases.py +++ b/test/workflows/commit_cases.py @@ -157,7 +157,7 @@ code change diff: content = '' for chunk in response: - content += chunk.choices[0].delta.content + content += (chunk.choices[0].delta.content or "") print('AI says:', content) return compare_result_parser(content)