chore: Enhance prompt
This commit is contained in:
parent
b1da47561f
commit
ae4459a766
1 changed files with 4 additions and 1 deletions
5
.github/workflows/check_duplicates.yaml
vendored
5
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue