#!/usr/bin/env python3
"""Test script to verify GEMINI_MODEL configuration."""

import os
import sys

# Add src to path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))

from sinhala_mcp.server import get_model, DEFAULT_MODEL

print("=" * 60)
print("sinhala-mcp Model Configuration Test")
print("=" * 60)

print(f"\nCurrent Configuration:")
print(f"  DEFAULT_MODEL: {DEFAULT_MODEL}")
print(f"  GEMINI_MODEL env var: {os.environ.get('GEMINI_MODEL', 'Not set')}")

print(f"\nActive Model:")
model = get_model()
print(f"  {model}")

if model != DEFAULT_MODEL:
    print(f"\n[OK] Model overridden via GEMINI_MODEL environment variable")
else:
    print(f"\n[INFO] Using default model (no override)")

print("\n" + "=" * 60)
print("Tips:")
print("  - To override the model, set GEMINI_MODEL environment variable")
print("  - Example: export GEMINI_MODEL=gemini-1.5-flash")
print("  - Restart your MCP client after changing environment variables")
print("=" * 60)
