Skip to content

Commit

Permalink
edit: env name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniij committed Jan 5, 2025
1 parent f7b54bd commit 8891bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gpt-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Handler(ctx context.Context, request events.APIGatewayProxyRequest) (events
}

// Initialize OpenAI client
apiKey := os.Getenv("API_KEY")
apiKey := os.Getenv("GPT_API_KEY")
client := openai.NewClient(apiKey)

gptResponse, err := ChatGPT(req, client)
Expand Down
6 changes: 3 additions & 3 deletions upload-to-github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func Handler(ctx context.Context, request events.APIGatewayProxyRequest) (events
// 1. 환경 변수 불러오기
awsRegion := os.Getenv("AWS_REGION")
bucketName := os.Getenv("S3_BUCKET_NAME")
githubToken := os.Getenv("GITHUB_TOKEN")
owner := os.Getenv("GITHUB_OWNER")
repo := os.Getenv("GITHUB_REPO")
githubToken := os.Getenv("TOKEN_GITHUB")
owner := os.Getenv("OWNER_GITHUB")
repo := os.Getenv("REPO_GITHUB")

// 환경 변수 검증
if awsRegion == "" || bucketName == "" || githubToken == "" || owner == "" || repo == "" {
Expand Down

0 comments on commit 8891bcf

Please sign in to comment.