From cac99f2aabb48e7684219b8d1258dad22e30868a Mon Sep 17 00:00:00 2001 From: Sandro Loch Date: Thu, 11 Jan 2024 08:18:04 -0300 Subject: [PATCH] chore(chatgpt-reviewer): Change to 'gpt-4.0-turbo' version --- .github/workflows/test_action.yaml | 2 +- README.md | 2 +- action.yml | 2 +- main.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml index d163e5d..6ccdf81 100644 --- a/.github/workflows/test_action.yaml +++ b/.github/workflows/test_action.yaml @@ -19,7 +19,7 @@ jobs: # uses: osl-incubator/github-actions-chatgpt-pr-reviewer@1.0.3 with: openai_api_key: ${{ secrets.OPENAI_API_KEY }} - openai_model: 'gpt-3.5-turbo' + openai_model: 'gpt-4.0-turbo' openai_temperature: 0.5 openai_max_tokens: 2048 openai_extra_criteria: | # optional, use `;` for separate the criteria items diff --git a/README.md b/README.md index d52ed8c..b4f2124 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Include the following into your github actions step uses: osl-incubator/github-actions-chatgpt-pr-reviewer@1.0.3 with: openai_api_key: ${{ secrets.OPENAI_API_KEY }} # required - openai_model: 'gpt-3.5-turbo' # optional + openai_model: 'gpt-4.0-turbo' # optional openai_temperature: 0.5 # optional openai_max_tokens: 2048 # optional openai_extra_criteria: | # optional, use `;` for separate the criteria items diff --git a/action.yml b/action.yml index 652891c..39eb5e6 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ inputs: openai_model: description: 'OpenAI Model' required: false - default: 'gpt-3.5-turbo' + default: 'gpt-4.0-turbo' openai_temperature: description: 'Temperature fo randomness, 0 is more conservative and 1 is more creative.' required: false diff --git a/main.py b/main.py index 5081992..0aa69fa 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ def _config_gh(self): self.gh_api = Github(self.gh_token) def _config_openai(self): - openai_model_default = "gpt-3.5-turbo" + openai_model_default = "gpt-4.0-turbo" openai_temperature_default = 0.5 openai_max_tokens_default = 2048 openai_extra_criteria_default = ""