Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/answer_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def validate_response(response_text: str) -> bool:
return True

def get_gemini_response(api_key, system_instruction, user_content):
# Using gemini-3.5-flash for fast and reliable answering
url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash:generateContent?key={api_key}"
model = os.getenv("GEMINI_MODEL", "gemini-3.8-flash")
url = f"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={api_key}"
headers = {'Content-Type': 'application/json'}
data = {
"system_instruction": {
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/triage_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def sanitize_content(text: str) -> str:
return text.replace("</issue_content>", "&lt;/issue_content&gt;").replace("<issue_content>", "&lt;issue_content&gt;")

def get_gemini_response(api_key, system_instruction, user_content):
# Using the stable Gemini 3.5 Flash
url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash:generateContent?key={api_key}"
model = os.getenv("GEMINI_MODEL", "gemini-3.8-flash")
url = f"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={api_key}"
headers = {'Content-Type': 'application/json'}
data = {
"system_instruction": {
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/triage-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
id: run_script
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_MODEL: ${{ vars.GEMINI_MODEL }}
ISSUE_TITLE: ${{ github.event.issue.title || github.event.inputs.title }}
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.body }}
run: |
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
if: github.event_name == 'workflow_dispatch' || github.event.action == 'opened'
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_MODEL: ${{ vars.GEMINI_MODEL }}
ISSUE_TITLE: ${{ github.event.issue.title || github.event.inputs.title }}
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.body }}
run: |
Expand Down
Loading