feat: debuging
Browse files- utils/llm_caller.py +1 -2
    	
        utils/llm_caller.py
    CHANGED
    
    | @@ -146,7 +146,7 @@ class LLMCaller: | |
| 146 | 
             
                            # Filter out empty strings and join with newlines
         | 
| 147 | 
             
                            context_text += "\n" + "\n".join([field for field in context_fields if field])
         | 
| 148 |  | 
| 149 | 
            -
                        print( | 
| 150 | 
             
                        # 5. Create detailed prompt for LLM - updated with new fields
         | 
| 151 | 
             
                        llm_prompt = f"""Generate a travel plan in JSON format for:
         | 
| 152 | 
             
                        From: {plan_request.start_place} → To: {destination}
         | 
| @@ -155,7 +155,6 @@ class LLMCaller: | |
| 155 | 
             
                        Interests: {', '.join(plan_request.interests) if plan_request.interests else 'Sightseeing'}
         | 
| 156 | 
             
                        Transport: {plan_request.transportPref or 'Any'} | Stay: {plan_request.stayPref or 'Any'}
         | 
| 157 | 
             
                        Dates: {plan_request.travelDates or 'Flexible'}
         | 
| 158 | 
            -
                        *Provide a latitude and longitude for each place in timeline and spots.*.
         | 
| 159 |  | 
| 160 | 
             
                        Context: {context_text[:4000]}{"..." if len(context_text) > 4000 else ""}
         | 
| 161 |  | 
|  | |
| 146 | 
             
                            # Filter out empty strings and join with newlines
         | 
| 147 | 
             
                            context_text += "\n" + "\n".join([field for field in context_fields if field])
         | 
| 148 |  | 
| 149 | 
            +
                        print(context_text)
         | 
| 150 | 
             
                        # 5. Create detailed prompt for LLM - updated with new fields
         | 
| 151 | 
             
                        llm_prompt = f"""Generate a travel plan in JSON format for:
         | 
| 152 | 
             
                        From: {plan_request.start_place} → To: {destination}
         | 
|  | |
| 155 | 
             
                        Interests: {', '.join(plan_request.interests) if plan_request.interests else 'Sightseeing'}
         | 
| 156 | 
             
                        Transport: {plan_request.transportPref or 'Any'} | Stay: {plan_request.stayPref or 'Any'}
         | 
| 157 | 
             
                        Dates: {plan_request.travelDates or 'Flexible'}
         | 
|  | |
| 158 |  | 
| 159 | 
             
                        Context: {context_text[:4000]}{"..." if len(context_text) > 4000 else ""}
         | 
| 160 |  |