forked from presubmit/ai-reviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (31 loc) · 1.68 KB
/
.env.example
File metadata and controls
37 lines (31 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copy this file to .env and set the variables
# The variables are only used when running locally
# REQUIRED: Set this as your Github personal access token
GITHUB_TOKEN=
# OPTIONAL: GitHub Enterprise Server configuration
# GITHUB_API_URL=https://github.example.com/api/v3 # API URL for GitHub Enterprise Server
# GITHUB_SERVER_URL=https://github.example.com # Server URL for GitHub Enterprise Server
# REQUIRED: LLM API
LLM_API_KEY= # API key from your LLM provider (ie Anthropic, Google, OpenAI)
LLM_MODEL= # Model name from your LLM provider (ie claude-3-5-sonnet-20241022, gemini-1.5-flash-latest, gpt-4o-mini)
LLM_PROVIDER= # LLM provider (e.g. ai-sdk, sap-ai-sdk)
# SAP AI Core Configuration (required when LLM_PROVIDER=sap-ai-sdk)
SAP_AI_CORE_CLIENT_ID= # Client ID for SAP AI Core
SAP_AI_CORE_CLIENT_SECRET= # Client Secret for SAP AI Core
SAP_AI_CORE_TOKEN_URL= # Token URL for SAP AI Core authentication
SAP_AI_CORE_BASE_URL= # Base URL for SAP AI Core API
SAP_AI_RESOURCE_GROUP=default # Resource group for SAP AI Core (default: default)
# Simulate a Pull Request open event
GITHUB_ACTION=ai-reviewer
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_ACTION=created
GITHUB_REPOSITORY=presubmit/ai-reviewer # update with your fork
GITHUB_PULL_REQUEST=1 # update with your pull request number
GITHUB_COMMENT_ID=1111111 # update with your comment id
# Simulate a Pull Request review comment event
# GITHUB_ACTION=ai-reviewer
# GITHUB_EVENT_NAME=pull_request_review_comment
# GITHUB_EVENT_ACTION=created
# GITHUB_REPOSITORY=presubmit/ai-reviewer # update with your fork
# GITHUB_PULL_REQUEST=1 # update with your pull request number
# GITHUB_COMMENT_ID=1111111 # update with your comment id