Commit
•
9a56e2f
1
Parent(s):
5dadd7e
special instructions for when using llama-node
Browse files- public/index.html +1 -1
- src/index.mts +1 -2
public/index.html
CHANGED
@@ -93,7 +93,7 @@ function app() {
|
|
93 |
draft: new URLSearchParams(window.location.search).get('prompt') || '',
|
94 |
size: 0,
|
95 |
minPromptSize: 16, // if you change this, you will need to also change in src/index.mts
|
96 |
-
timeoutInSec:
|
97 |
state: 'stopped',
|
98 |
lastTokenAt: + new Date(),
|
99 |
init() {
|
|
|
93 |
draft: new URLSearchParams(window.location.search).get('prompt') || '',
|
94 |
size: 0,
|
95 |
minPromptSize: 16, // if you change this, you will need to also change in src/index.mts
|
96 |
+
timeoutInSec: 3 * 60, // time before we determine something went wrong
|
97 |
state: 'stopped',
|
98 |
lastTokenAt: + new Date(),
|
99 |
init() {
|
src/index.mts
CHANGED
@@ -126,10 +126,9 @@ Generate this webapp: ${req.query.prompt}.
|
|
126 |
# Documentation
|
127 |
${daisy}
|
128 |
# Guidelines
|
129 |
-
- Do not write a tutorial! This is a web app!
|
130 |
- Never repeat the instruction, instead directly write the final code within a script tag
|
131 |
- Use a color scheme consistent with the brief and theme
|
132 |
-
- You need to use Tailwind CSS and DaisyUI for the UI
|
133 |
- All the JS code will be written directly inside the page, using <script type="text/javascript">...</script>
|
134 |
- You MUST use English, not Latin! (I repeat: do NOT write lorem ipsum!)
|
135 |
- No need to write code comments, and try to make the code compact (short function names etc)
|
|
|
126 |
# Documentation
|
127 |
${daisy}
|
128 |
# Guidelines
|
|
|
129 |
- Never repeat the instruction, instead directly write the final code within a script tag
|
130 |
- Use a color scheme consistent with the brief and theme
|
131 |
+
- You need to use Tailwind CSS and DaisyUI for the UI. Do not use JS for simple pages (eg. blogs or articles).
|
132 |
- All the JS code will be written directly inside the page, using <script type="text/javascript">...</script>
|
133 |
- You MUST use English, not Latin! (I repeat: do NOT write lorem ipsum!)
|
134 |
- No need to write code comments, and try to make the code compact (short function names etc)
|