Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CodemodderOpenAIKeys.java This provides additional informatio… #239

Closed
wants to merge 1 commit into from

Conversation

Yesahk
Copy link

@Yesahk Yesahk commented Nov 17, 2023

…n in case the key is not available.

@CLAassistant
Copy link

CLAassistant commented Nov 17, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -13,6 +13,13 @@ public final class CodemodderOpenAIKeys {
*/
public static boolean isAvailable() {
String key = System.getenv("CODEMODDER_OPENAI_API_KEY");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of behavior do you think would be best for codemod authors? I'm only working on OpenAI-based codemods sometimes, so having a loud error (or throwing an exception) when there's not a key available feels heavy handed.

@Yesahk
Copy link
Author

Yesahk commented Nov 25, 2023 via email

@nahsra
Copy link
Contributor

nahsra commented Nov 27, 2023

Happy to re-open if we can have a more substantial debate about the problem this intends to solve, the tradeoffs around the solution.

@nahsra nahsra closed this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants