From 865e17a14518d8809b22c5c38005d6e730c462ee Mon Sep 17 00:00:00 2001 From: GalvinGao Date: Thu, 23 Nov 2023 04:03:31 -0800 Subject: [PATCH] build: fix resolve content --- .github/workflows/pr-auto-upsert.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-auto-upsert.yml b/.github/workflows/pr-auto-upsert.yml index daca1f3c..4c133d8a 100644 --- a/.github/workflows/pr-auto-upsert.yml +++ b/.github/workflows/pr-auto-upsert.yml @@ -103,7 +103,7 @@ jobs: let data = '' res.on('data', chunk => data += chunk) res.on('end', () => { - resolve(JSON.parse(data).choices[0].message.text) + resolve(JSON.parse(data).choices[0].message.content) }) }) req.on('error', reject)