Skip to content

Conversation

@KTrain5169
Copy link

Currently, the OpenAIEngine relies on the OPENAI_API_KEY environment variable being set. This PR changes it so that, whilst the engine still defaults to that environmental variable, it also now takes an api_key input to set it.

It feels a little awkward to place it as the last parameter positionally, but I didn't want to break existing implementations. I don't really see any reason why this shouldn't be the case but if anyone has a reason, please bring it up. Thanks!

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