Buckets:
| #!/usr/bin/env python3 | |
| """ | |
| Test script for API keys | |
| """ | |
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables | |
| load_dotenv() | |
| def test_api_keys(): | |
| """Test if API keys are properly configured""" | |
| print("๐ Testing API Keys Configuration") | |
| print("=" * 40) | |
| # Test OpenAI | |
| openai_key = os.getenv("OPENAI_API_KEY") | |
| if openai_key and openai_key != "your_openai_api_key_here": | |
| print("โ OpenAI API Key: Configured") | |
| print(f" Key: {openai_key[:10]}...") | |
| else: | |
| print("โ OpenAI API Key: Not configured") | |
| # Test Anthropic | |
| anthropic_key = os.getenv("ANTHROPIC_API_KEY") | |
| if anthropic_key and anthropic_key != "your_anthropic_api_key_here": | |
| print("โ Anthropic API Key: Configured") | |
| print(f" Key: {anthropic_key[:10]}...") | |
| else: | |
| print("โ Anthropic API Key: Not configured") | |
| print("\n๐ก To configure API keys:") | |
| print(" 1. Edit the .env file") | |
| print(" 2. Replace 'your_openai_api_key_here' with your actual key") | |
| print(" 3. Replace 'your_anthropic_api_key_here' with your actual key") | |
| if __name__ == "__main__": | |
| test_api_keys() | |
Xet Storage Details
- Size:
- 1.17 kB
- Xet hash:
- 3ccbd5349af1c61570b3bd354aeaa7c50eed70bf04ee7d4316721e32a74c20d0
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.