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

OpenAI API key #7

Open
michalkrawczyk opened this issue May 10, 2023 · 0 comments
Open

OpenAI API key #7

michalkrawczyk opened this issue May 10, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@michalkrawczyk
Copy link
Owner

Important: Before importing gpt_core module, openai.api_key must be set. This can be done with openai_key.yaml or with enviroment variable (if yaml does not exists, or is incorrect)

It is also possible to change/reload openai.api_key at any stage, with function gpt_core.reload_openai_key(key_yaml_path: str = "./openai_key.yaml")

@michalkrawczyk michalkrawczyk added the documentation Improvements or additions to documentation label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant