Skip to content

Commit

Permalink
Merge pull request #46694 from ikevin127/fix/proposal-police-response
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored Aug 2, 2024
2 parents 49435db + e178ac4 commit b147b62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/javascript/proposalPoliceComment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18631,7 +18631,7 @@ class OpenAIUtils {
continue;
}
response += message.content
.map((contentBlock) => this.isTextContentBlock(contentBlock))
.map((contentBlock) => this.isTextContentBlock(contentBlock) && contentBlock.text.value)
.join('\n')
.trim();
console.log('Parsed assistant response:', response);
Expand Down
2 changes: 1 addition & 1 deletion .github/libs/OpenAIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class OpenAIUtils {
continue;
}
response += message.content
.map((contentBlock) => this.isTextContentBlock(contentBlock))
.map((contentBlock) => this.isTextContentBlock(contentBlock) && contentBlock.text.value)
.join('\n')
.trim();
console.log('Parsed assistant response:', response);
Expand Down

0 comments on commit b147b62

Please sign in to comment.