import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'picker_project.settings')
django.setup()

from market.llm_client import call_llm
query = "mbezi makabe"
prompt = (
    f"A user in Tanzania is looking for a delivery location: '{query}'. "
    "Provide the approximate latitude and longitude for this neighborhood or landmark in Tanzania. "
    "Respond with ONLY valid JSON, no other text: "
    "{\"name\": \"Corrected Name\", \"lat\": -6.xxx, \"lng\": 39.xxx}. "
    "If you truly cannot identify the place in Tanzania, respond with {}."
)
print("Response:", call_llm([{'role': 'user', 'content': prompt}], temperature=0.1))
