From ae4459a7666f8a81e30cd9877dbabd3ce88932ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Sun, 18 May 2025 10:20:29 +0200 Subject: [PATCH] chore: Enhance prompt --- .github/workflows/check_duplicates.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_duplicates.yaml b/.github/workflows/check_duplicates.yaml index 064e3e7b5..9860c9218 100644 --- a/.github/workflows/check_duplicates.yaml +++ b/.github/workflows/check_duplicates.yaml @@ -16,13 +16,16 @@ jobs: run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV - name: Let Gemini reply run: | + echo "${{ env.issues }}" RESPONSE=$(curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${{ secrets.GEMINI_KEY }}" \ -H 'Content-Type: application/json' \ -X POST \ -d '{ "contents": [{ "parts":[ - {"text": "Please write a very short and nice response to this new issue and link possible duplications.\n\n${{ env.title }}\n${{ env.body }}\n\nPossible Duplications:\n${{ env.issues }}"} + {"text": "Please write a very short and nice response to this new issue. If existing link possible duplications by using markdown links."}, + {"text": "${{ env.title }}\n${{ env.body }}"}, + {"text": "Possible duplications:\n${{ env.issues }}"} ] }] }' | jq -r '.candidates[0].content.parts[0].text')