Improved prompt in case Claude tries to use a smaller model with a larger file

This commit is contained in:
Fahad
2025-06-17 13:08:50 +04:00
parent 08c22273db
commit 9bf2a2a51c

View File

@@ -1090,7 +1090,7 @@ def check_total_file_size(files: list[str], model_name: str) -> Optional[dict]:
"threshold_percent": threshold_percent,
"model_context_window": context_window,
"model_name": model_name,
"instructions": "Reduce file selection and try again - all files must fit within budget",
"instructions": "Reduce file selection and try again - all files must fit within budget. If this persists, please use a model with a larger context window where available.",
},
}