Skip to content

Update OpenAI client configuration and methods #205

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

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Update OpenAI client configuration and methods #205

merged 1 commit into from
Aug 1, 2023

Conversation

zurawiki
Copy link
Owner

@zurawiki zurawiki commented Aug 1, 2023

Fixes and closes #202

Test Plan:

gptcommit config delete openai.api_base
gptcommit config delete openai.api_key
# ensure environment variables are clear
# run githook, should fail

# trailing slash is crucial because that is not the default API_BASE, but will still work without setting up your own custom base url.
gptcommit config set openai.api_base "https://api.openai.com/v1/"
gptcommit config set openai.api_key "sk-..."
# ensure environment variables are clear
# run githook, should pass and use api_key given

@zurawiki zurawiki merged commit 2872fd1 into main Aug 1, 2023
@zurawiki zurawiki deleted the fix1 branch August 1, 2023 04:42
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.

bug: You didn't provide an API key
1 participant