Skip to content

Get OpenAI key from environment variable? #4

@lehenbauer

Description

@lehenbauer

The openai package for Python recognizes an environment variable, OPENAI_API_KEY, and will get the key from that if set. I recommend implementing that.

You might consider using the openai package to handle all the API calls to chatGPT because of the simplification and you'll get the environment variable thing for free.

What's really intriguing is could chatGPT more directly help you figure out the bug by strategizing on a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions