Skip to content

Commit 240fec7

Browse files
Merge pull request #3019 from actiontech/fix-pr-agent
update ai model configuration
2 parents 83f16ba + 833c356 commit 240fec7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/pr-agent.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
github_action_config.pr_actions: '["opened", "reopened", "ready_for_review", "review_requested", "synchronize"]'
20-
OPENAI_API_VERSION: "2024-07-01-preview"
20+
OPENAI_API_VERSION: ${{ vars.AZURE_API_VERSION }}
2121
github_action_config.auto_review: "true"
2222
github_action_config.auto_describe: "true"
2323
github_action_config.auto_improve: "true"
2424
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
2525
OPENAI.API_TYPE: "azure"
2626
OPENAI.API_BASE: ${{ secrets.OPENAI_API_BASE }}
27-
AZURE_API_VERSION: "2024-07-01-preview"
27+
AZURE_API_VERSION: ${{ vars.AZURE_API_VERSION }}
2828
OPENAI.DEPLOYMENT_ID: ${{ secrets.DEPLOYMENT_ID }}

.pr_agent.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[config]
2-
model="o1-mini"
32
response_language="zh-CN"
43
verbosity_level=2
54

0 commit comments

Comments
 (0)