Skip to content

Conversation

@LuminaX-alt
Copy link
Owner

This PR addresses migration issues reported when using the OpenAI Python client on Windows Subsystem for Linux (WSL), as discussed in issue openai#1880.

Changes made:

Added SSL context initialization using certifi to prevent SSL: CERTIFICATE_VERIFY_FAILED errors commonly encountered in WSL.

Improved HOME path resolution for environment files, ensuring .env is properly detected in WSL environments.

Automatically loads .env from the user’s home directory to simplify API key configuration in WSL setups.

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

This PR addresses migration issues reported when using the OpenAI Python client on Windows Subsystem for Linux (WSL), as discussed in issue openai#1880.

Changes made:

Added SSL context initialization using certifi to prevent SSL: CERTIFICATE_VERIFY_FAILED errors commonly encountered in WSL.

Improved HOME path resolution for environment files, ensuring .env is properly detected in WSL environments.

Automatically loads .env from the user’s home directory to simplify API key configuration in WSL setups.
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.

2 participants