adrija93 commited on
Commit
beab03e
·
verified ·
1 Parent(s): 8947a77

Update System prompt to include Code Explanation in README

Browse files
Files changed (1) hide show
  1. app/services/aipipe_client.py +2 -2
app/services/aipipe_client.py CHANGED
@@ -75,7 +75,7 @@ class AIpipeClient:
75
  "\n - Meet all requirements specified in the brief"
76
  "\nReturn ONLY a JSON object matching this schema:"
77
  "{"
78
- ' "README.md": "# Project Name\\n\\nProject description\\n\\n## Setup\\n...\\n\\n## Usage\\n...\\n\\n## License\\nMIT",'
79
  ' "index.html": "<!DOCTYPE html>\\n<html lang=\\"en\\">...</html>",'
80
  ' "style.css": "/* CSS styles */",'
81
  ' "script.js": "// JavaScript code"'
@@ -215,7 +215,7 @@ class AIpipeClient:
215
  files["script.js"] = response.javascript
216
  if response.css:
217
  files["style.css"] = response.css
218
- return files
219
  except Exception as e:
220
  print(f"Failed to parse LLM response: {e}")
221
  # Fallback to a minimal app that satisfies basic structure
 
75
  "\n - Meet all requirements specified in the brief"
76
  "\nReturn ONLY a JSON object matching this schema:"
77
  "{"
78
+ ' "README.md": "# Project Name\\n\\nProject description\\n\\n## Setup\\n...\\n\\n## Usage\\n...\\n\\n## Code Explanation\\n...\\n\\n## License\\nMIT",'
79
  ' "index.html": "<!DOCTYPE html>\\n<html lang=\\"en\\">...</html>",'
80
  ' "style.css": "/* CSS styles */",'
81
  ' "script.js": "// JavaScript code"'
 
215
  files["script.js"] = response.javascript
216
  if response.css:
217
  files["style.css"] = response.css
218
+ return files
219
  except Exception as e:
220
  print(f"Failed to parse LLM response: {e}")
221
  # Fallback to a minimal app that satisfies basic structure