Skip to content

Commit

Permalink
Update action.yml and entrypoint.py***
Browse files Browse the repository at this point in the history
This commit updates the action.yml file by removing the "--repo-id" argument and modifies the entrypoint.py file by changing the "API_KEY" environment variable to "OPENAI_API_KEY".
  • Loading branch information
koganei committed Mar 8, 2024
1 parent 8fc897c commit 17a2007
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ runs:
GITHUB_PULL_REQUEST_NUMBER: ${{ inputs.githubPullRequestNumber }}
GIT_COMMIT_HASH: ${{ inputs.gitCommitHash }}
args:
- "--repo-id=${{ inputs.repoId }}"
- "--temperature=${{ inputs.temperature }}"
- "--max-new-tokens=${{ inputs.maxNewTokens }}"
- "--top-p=${{ inputs.topP }}"
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_review(
# Get summary by chunk
chunked_reviews = []
llm = OpenAI(
openai_api_key=os.getenv("API_KEY"),
openai_api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-3.5-turbo",
temperature=temperature,
max_new_tokens=max_new_tokens,
Expand Down

0 comments on commit 17a2007

Please sign in to comment.