Skip to content

Conversation

jackbackes
Copy link
Owner

  • Update config file to look for "OPENAI_API_KEY" instead of "openai_api_key"
  • Remove unnecessary error handling for .env file
  • Strip quotes from API key retrieved from config file

The update to the config file is more consistent with the naming conventions of environment variables, and the removal of error handling for the .env file simplifies the code. Stripping the quotes from the retrieved API key ensures consistency and compatibility with other API key retrieval methods.

Testing Done:

  • Manual testing done to ensure that API key is retrieved correctly with both config file and .env file methods.

- Update config file to look for "OPENAI_API_KEY" instead of "openai_api_key"
- Remove unnecessary error handling for .env file
- Strip quotes from API key retrieved from config file

The update to the config file is more consistent with the naming conventions of environment variables, and the removal of error handling for the .env file simplifies the code. Stripping the quotes from the retrieved API key ensures consistency and compatibility with other API key retrieval methods.

Testing Done:
- Manual testing done to ensure that API key is retrieved correctly with both config file and .env file methods.
@jackbackes jackbackes merged commit 14072f6 into master Apr 18, 2023
@jackbackes jackbackes deleted the happycommit-config-update branch April 18, 2023 03:57
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.

1 participant