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

The readme file could have instructions on how to create the OPENAI_API_KEY environment variable. #1945

Open
1 task done
lucaspaludo opened this issue Dec 12, 2024 · 1 comment

Comments

@lucaspaludo
Copy link

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • This is a feature request for the Python library

Describe the feature or improvement you're requesting

Description

Currently, the documentation for setting the OPENAI_API_KEY environment variable is incomplete or confusing, which can make it difficult for new developers to integrate the API into their projects. This issue suggests improvements to the documentation to clarify the process.

Problem

  • There is no clear explanation of where or how to create and set the environment variable.

  • Specific instructions for different operating systems (Windows, macOS, Linux) are missing or superficial.

  • There is no mention of best practices for storing sensitive variables, such as using .env files.

Proposed Solution

Add a detailed section on creating the environment variable in the official documentation:

  • Brief introduction about what OPENAI_API_KEY is
  • How to configure the variable in different operating systems.
  • Recommend the use of .env files

I believe these changes will reduce the learning curve for new developers, as well as ensuring that the configuration is done correctly.

Additional context

No response

@byearthinc-com
Copy link

****

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

No branches or pull requests

2 participants