Skip to content

Commit 37d1197

Browse files
authored
Merge branch 'main' into fix/extension-symlink-containment
2 parents db9c808 + 4b0534c commit 37d1197

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/ai-pr-review.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
2828
- name: Review
2929
env:
30-
LITELLM_API_KEY: ${{ secrets.LITELLM_API_KEY }}
30+
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
31+
OPENROUTER_BASE_URL: ${{ secrets.OPENROUTER_BASE_URL }}
3132
GH_TOKEN: ${{ github.token }}
3233
PR_NUMBER: ${{ github.event.pull_request.number }}
3334
PR_TITLE: ${{ github.event.pull_request.title }}
@@ -50,8 +51,8 @@ jobs:
5051
run: |
5152
set -euo pipefail
5253
53-
if [ -z "${LITELLM_API_KEY:-}" ]; then
54-
echo "LITELLM_API_KEY not available, skipping review"
54+
if [ -z "${OPENROUTER_API_KEY:-}" ]; then
55+
echo "OPENROUTER_API_KEY not available, skipping review"
5556
exit 0
5657
fi
5758
@@ -62,18 +63,19 @@ jobs:
6263
--arg diff "$DIFF" \
6364
--arg system "$SYSTEM_PROMPT" \
6465
'{
65-
model: "llm-gateway/claude-sonnet-4-6",
66+
model: "anthropic/claude-sonnet-4.6",
6667
max_tokens: 1024,
6768
messages: [
6869
{role: "system", content: $system},
6970
{role: "user", content: ("PR: " + $title + "\n\nDiff:\n" + $diff)}
7071
]
7172
}' > /tmp/payload.json
7273
74+
BASE_URL="${OPENROUTER_BASE_URL:-https://openrouter.ai/api/v1}"
7375
RESPONSE=$(curl -sf \
74-
-H "Authorization: Bearer ${LITELLM_API_KEY}" \
76+
-H "Authorization: Bearer ${OPENROUTER_API_KEY}" \
7577
-H "Content-Type: application/json" \
76-
"https://elastic.litellm-prod.ai/v1/chat/completions" \
78+
"${BASE_URL%/}/chat/completions" \
7779
-d @/tmp/payload.json)
7880
7981
CONTENT=$(echo "$RESPONSE" | jq -r '.choices[0].message.content // empty')

.github/workflows/auto-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ jobs:
1616
issue_number: ${{ github.event.issue.number }}
1717
search_directory: packages
1818
secrets:
19-
LITELLM_API_KEY: ${{ secrets.LITELLM_API_KEY }}
19+
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
20+
OPENROUTER_BASE_URL: ${{ secrets.OPENROUTER_BASE_URL }}

.github/workflows/resolve-conflicts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ permissions:
1010

1111
jobs:
1212
resolve:
13+
if: |
14+
(github.event.comment.user.login == 'github-actions[bot]' ||
15+
github.event.comment.user.login == 'elastic-vault-github-plugin-prod[bot]') &&
16+
contains(github.event.comment.body, 'To backport manually, run these commands')
1317
uses: elastic/clients-team-automations/.github/workflows/ai-backport-resolver.yml@main
1418
with:
1519
comment_body: ${{ github.event.comment.body }}
1620
comment_user: ${{ github.event.comment.user.login }}
1721
pr_number: ${{ github.event.issue.number }}
1822
secrets:
19-
LITELLM_API_KEY: ${{ secrets.LITELLM_API_KEY }}
23+
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
24+
OPENROUTER_BASE_URL: ${{ secrets.OPENROUTER_BASE_URL }}

0 commit comments

Comments
 (0)