Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +1 -1
prompts.py
CHANGED
@@ -108,7 +108,7 @@ def _format_code_files_for_prompt(code_files: dict[str, str]) -> str:
|
|
108 |
print(f"--- File: {filename} ---")
|
109 |
print(content[:128])
|
110 |
output_parts.append(
|
111 |
-
f"--- File: {filename} ---\n```\n{content[:MAX_FILE_CONTENT_LENGTH]}{'
|
112 |
)
|
113 |
|
114 |
return "\n".join(output_parts)
|
|
|
108 |
print(f"--- File: {filename} ---")
|
109 |
print(content[:128])
|
110 |
output_parts.append(
|
111 |
+
f"--- File: {filename} ---\n```\n{content[:MAX_FILE_CONTENT_LENGTH]}{'... [truncated]' if len(content) > MAX_FILE_CONTENT_LENGTH else ''}\n```"
|
112 |
)
|
113 |
|
114 |
return "\n".join(output_parts)
|