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

Updated API key verification script to new working version #1

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

mdeacey
Copy link

@mdeacey mdeacey commented Oct 6, 2024

  • Imports Update: Added re and logging for validation and feedback.
  • Logging Setup: Configured logging to replace print() statements.
  • API Key Format Validation: Added regex check for correct API key format (sk-...).
  • API Endpoint Update: Changed endpoint to /v1/chat/completions and updated payload for GPT-4.
  • Improved Error Handling: Used logging for better error messages and debug info.
  • Simplified Output: Removed print() and used logging for all output.
  • Main Function Update: Simplified command-line argument handling.

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.

1 participant