Skip to content

Commit b37dffa

Browse files
Update model parameter (#70)
* Remove default model version from pull request review and summary actions * Update model version from gpt-4o to gpt-5 in PR summary and review actions * Update README to require model parameter as executable ID for AI Core service * Update model version from anthropic--claude-4-sonnet to gpt-5 in PR summary and review actions * Add support for specifying a custom AI model in README * Update README to clarify model usage and rename job for PR review actions
1 parent 6d666c8 commit b37dffa

File tree

8 files changed

+42
-44
lines changed

8 files changed

+42
-44
lines changed

.github/workflows/ai-assistance.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: SAP/ai-assisted-github-actions/pr-summary@v3
1616
with:
1717
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
18-
model: anthropic--claude-4-sonnet
18+
model: gpt-5
1919
exclude-files: package-lock.json
2020
display-mode: append
2121
header-text: "---"
@@ -31,5 +31,5 @@ jobs:
3131
- uses: SAP/ai-assisted-github-actions/pr-review@v3
3232
with:
3333
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
34-
model: anthropic--claude-4-sonnet
34+
model: gpt-5
3535
exclude-files: package-lock.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: SAP/ai-assisted-github-actions/pr-summary@v3
6767
with:
6868
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
69-
model: gpt-4o
69+
model: gpt-5
7070
exclude-files: package-lock.json
7171
review:
7272
name: PR Review
@@ -75,7 +75,7 @@ jobs:
7575
- uses: SAP/ai-assisted-github-actions/pr-review@v3
7676
with:
7777
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
78-
model: gpt-4o
78+
model: gpt-5
7979
exclude-files: package-lock.json
8080
```
8181

pr-review/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ INPUT_PR_NUMBER=1
1010

1111
INPUT_AICORE_SERVICE_KEY='{ "clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": ... } }'
1212
INPUT_DISPLAY_MODE='none'
13+
INPUT_MODEL=gpt-5
1314
INPUT_PREVIOUS_RESULTS='keep'
1415

15-
# INPUT_MODEL=
1616
# INPUT_PROMPT=
1717
# INPUT_PROMPT_ADDITION=
1818
# INPUT_DISCLAIMER_PROMPT=

pr-review/README.md

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

pr-review/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ inputs:
1515
model:
1616
description: "The name of the SAP AI Core model that is used to generate the review."
1717
required: true
18-
default: "gpt-4o"
1918
model-parameters:
2019
description: 'Additional parameters for the model as JSON. For example, {"temperature": 0.5, "max_tokens": 100}.'
2120
default: "{}"

pr-summary/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ INPUT_REPO=technology-exploration
99
INPUT_PR_NUMBER=1
1010

1111
INPUT_AICORE_SERVICE_KEY='{ "clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": ... } }'
12+
INPUT_MODEL=gpt-5
1213
INPUT_DISPLAY_MODE='none'
1314
INPUT_PREVIOUS_RESULTS='keep'
1415

15-
# INPUT_MODEL=
1616
# INPUT_PROMPT=
1717
# INPUT_PROMPT_ADDITION=
1818
# INPUT_HEADER_TEXT=

pr-summary/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ Input parameters for the action:
9494
| Name | Description |
9595
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
9696
| `aicore-service-key` (required) | The service key for your _SAP AI Core_ service instance. |
97+
| `model` (required) | The name of the SAP AI Core model that is used to generate the summary. <br /> Has to be set to an executable ID of the [available generative AI models](https://me.sap.com/notes/3437766/E). |
9798
| `display-mode` | Defines where the summary will be posted. Default: `comment` <ul><li>`comment`: Adds a new comment with the summary.</li><li>`comment-delta`: Adds a comment with only the changes made since the last summary.</li><li>`append`: Appends the summary to the PR description text (`header-text`/`footer-text` could be useful to distinguish it from default PR text)</li><li>`none`: No display; the action will not post any summary</li></ul> |
9899
| `user-token` | The personal access token of the GitHub user that is used to create the summary. <br /> Default: `${{ github.token }}` |
99-
| `model` | The name of the SAP AI Core model that is used to generate the summary. <br /> Default: `gpt-4` |
100100
| `model-parameters` | Additional parameters for the model as JSON. For example, `{"temperature": 0.5, "max_tokens": 100}`. <br /> Default: `{}` |
101101
| `model-version` | The version of the model that is used to generate the summary. <br /> Default: `latest` |
102102
| `deployment-config` | The deployment configuration as JSON. For example, {\"resourceGroup\": \"abcdefg\"}. <br /> Default: `{}` |

pr-summary/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ inputs:
1515
model:
1616
description: "The name of the SAP AI Core model that is used to generate the summary."
1717
required: true
18-
default: "gpt-4"
1918
model-parameters:
2019
description: 'Additional parameters for the model as JSON. For example, {"temperature": 0.5, "max_tokens": 100}.'
2120
default: "{}"

0 commit comments

Comments
 (0)