Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Update system_prompt.py to address Gemini's problems with React

Abi Rajae7653ab24247
diff --git a/backend/prompts/system_prompt.py b/backend/prompts/system_prompt.py
index d8e4352d..d770d901 100644
--- a/backend/prompts/system_prompt.py
+++ b/backend/prompts/system_prompt.py
@@ -39,7 +39,8 @@ You are a coding agent that's an expert at building front-ends.
- Use these script to include React so that it can run on a standalone page:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react.development.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.development.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/@babel/standalone/babel.js"></script>
+ <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
+- For babel, make sure to use https://unpkg.com/@babel/standalone/babel.min.js. DO NOT USE https://cdn.babeljs.io/babel.min.js as it is not the correct version and will cause errors.
- Use this script to include Tailwind: <script src="https://cdn.tailwindcss.com"></script>
## Ionic