When using the "AzureOpenAIChatCompletionClient", a user triggering a content violation policy causes an exception within Autogen 0.4.6 that cannot be caught #6178
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Remove awaiting-op-response label if op responded | |
| on: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| label_issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - run: gh issue edit "$NUMBER" --remove-label "$LABELS" | |
| if: ${{ github.event.comment.user.login == github.event.issue.user.login && contains(github.event.issue.labels.*.name, 'awaiting-op-response') }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| NUMBER: ${{ github.event.issue.number }} | |
| LABELS: awaiting-op-response |