Modify r-2 prompt and change r-2 model to nano
Browse files- llm_generator.py +4 -2
llm_generator.py
CHANGED
|
@@ -316,10 +316,12 @@ def revise_app_code(brief, file_paths, html_content,image_present,image_data,rep
|
|
| 316 |
The entire attachment will be in the same directory as the index.html file available through Javascript fetch requests.
|
| 317 |
|
| 318 |
Return ONLY the complete content of a single file named 'index.html' as plain text with no explanations. Do NOT return any JSON or additional files. Include all necessary HTML, CSS, and JavaScript inline.
|
| 319 |
-
If external libraries are used,
|
|
|
|
| 320 |
Always use jsDelivr to load external libraries unless the brief explicitly instructs otherwise.
|
| 321 |
Ensure all JavaScript regex literals are syntactically valid.
|
| 322 |
For splitting text by lines, use ONLY **text.split(/\r?\n/)** IF REQUIRED.
|
|
|
|
| 323 |
Make sure the code has NO syntax errors."""
|
| 324 |
|
| 325 |
# resp = openai.ChatCompletion.create(
|
|
@@ -357,7 +359,7 @@ def revise_app_code(brief, file_paths, html_content,image_present,image_data,rep
|
|
| 357 |
|
| 358 |
else:
|
| 359 |
data={
|
| 360 |
-
"model": "gpt-5-
|
| 361 |
"messages": [
|
| 362 |
{
|
| 363 |
"role": "user",
|
|
|
|
| 316 |
The entire attachment will be in the same directory as the index.html file available through Javascript fetch requests.
|
| 317 |
|
| 318 |
Return ONLY the complete content of a single file named 'index.html' as plain text with no explanations. Do NOT return any JSON or additional files. Include all necessary HTML, CSS, and JavaScript inline.
|
| 319 |
+
If external libraries are used, use the latest stable versions to generate up-to-date, working code.
|
| 320 |
+
**DO NOT use deprecated syntax.**
|
| 321 |
Always use jsDelivr to load external libraries unless the brief explicitly instructs otherwise.
|
| 322 |
Ensure all JavaScript regex literals are syntactically valid.
|
| 323 |
For splitting text by lines, use ONLY **text.split(/\r?\n/)** IF REQUIRED.
|
| 324 |
+
IF marked library is used, DO NOT use marked()
|
| 325 |
Make sure the code has NO syntax errors."""
|
| 326 |
|
| 327 |
# resp = openai.ChatCompletion.create(
|
|
|
|
| 359 |
|
| 360 |
else:
|
| 361 |
data={
|
| 362 |
+
"model": "gpt-5-nano",
|
| 363 |
"messages": [
|
| 364 |
{
|
| 365 |
"role": "user",
|