Spaces:
Sleeping
Sleeping
Fixed library mismatch issues when using LLM to import CDN libraries
Browse files- llm_utils.py +4 -1
llm_utils.py
CHANGED
|
@@ -42,7 +42,10 @@ def generate_app_files(brief: str, checks: List[str], attachments: Optional[List
|
|
| 42 |
' 5. License information (MIT License)\n\n'
|
| 43 |
'Technical requirements:\n'
|
| 44 |
'1. Process data client-side\n'
|
| 45 |
-
'2.
|
|
|
|
|
|
|
|
|
|
| 46 |
'3. Base64 handling:\n'
|
| 47 |
' - Keep ${...} strings in data URIs as-is\n'
|
| 48 |
' - Do not try to decode template literals\n'
|
|
|
|
| 42 |
' 5. License information (MIT License)\n\n'
|
| 43 |
'Technical requirements:\n'
|
| 44 |
'1. Process data client-side\n'
|
| 45 |
+
'2. CDN requirements:\n'
|
| 46 |
+
' - Use cdnjs.cloudflare.com as primary CDN provider\n'
|
| 47 |
+
' - Use latest stable versions with specific version numbers\n'
|
| 48 |
+
' - Preferred format: https://cdnjs.cloudflare.com/ajax/libs/LIBRARY/VERSION/FILE.min.js\n'
|
| 49 |
'3. Base64 handling:\n'
|
| 50 |
' - Keep ${...} strings in data URIs as-is\n'
|
| 51 |
' - Do not try to decode template literals\n'
|