import os
from dotenv import load_dotenv
import sys

# Add current dir to path to import local modules
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from llm_providers import get_api_key

load_dotenv()
key = get_api_key("minimax")
print(f"MINIMAX_API_KEY found: {bool(key)}")
if key:
    print(f"Key starts with: {key[:4]}...")
else:
    print("Key is empty!")

print(f"Direct os.getenv('MINIMAX_API_KEY'): {bool(os.getenv('MINIMAX_API_KEY'))}")
