tahamajs's picture
download
raw
1.17 kB
#!/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.