Spaces:
Running
Running
deepsitev2.1
#277
by
shilezi
- opened
components/editor/deploy-button/index.tsx
CHANGED
@@ -71,7 +71,7 @@ export function DeployButton({
|
|
71 |
<div>
|
72 |
<Button variant="default" className="max-lg:hidden !px-4">
|
73 |
<MdSave className="size-4" />
|
74 |
-
|
75 |
</Button>
|
76 |
<Button variant="default" size="sm" className="lg:hidden">
|
77 |
Deploy
|
|
|
71 |
<div>
|
72 |
<Button variant="default" className="max-lg:hidden !px-4">
|
73 |
<MdSave className="size-4" />
|
74 |
+
Save your Project
|
75 |
</Button>
|
76 |
<Button variant="default" size="sm" className="lg:hidden">
|
77 |
Deploy
|
components/editor/save-button/index.tsx
CHANGED
@@ -59,7 +59,7 @@ export function SaveButton({
|
|
59 |
onClick={updateSpace}
|
60 |
>
|
61 |
<MdSave className="size-4" />
|
62 |
-
|
63 |
{loading && <Loading className="ml-2 size-4 animate-spin" />}
|
64 |
</Button>
|
65 |
<Button
|
@@ -68,7 +68,7 @@ export function SaveButton({
|
|
68 |
className="lg:hidden relative"
|
69 |
onClick={updateSpace}
|
70 |
>
|
71 |
-
|
72 |
</Button>
|
73 |
</>
|
74 |
);
|
|
|
59 |
onClick={updateSpace}
|
60 |
>
|
61 |
<MdSave className="size-4" />
|
62 |
+
Save your Project{" "}
|
63 |
{loading && <Loading className="ml-2 size-4 animate-spin" />}
|
64 |
</Button>
|
65 |
<Button
|
|
|
68 |
className="lg:hidden relative"
|
69 |
onClick={updateSpace}
|
70 |
>
|
71 |
+
Save {loading && <Loading className="ml-2 size-4 animate-spin" />}
|
72 |
</Button>
|
73 |
</>
|
74 |
);
|
lib/prompts.ts
CHANGED
@@ -2,7 +2,7 @@ export const SEARCH_START = "<<<<<<< SEARCH";
|
|
2 |
export const DIVIDER = "=======";
|
3 |
export const REPLACE_END = ">>>>>>> REPLACE";
|
4 |
export const MAX_REQUESTS_PER_IP = 2;
|
5 |
-
export const INITIAL_SYSTEM_PROMPT = `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING TAILWINDCSS. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE
|
6 |
export const FOLLOW_UP_SYSTEM_PROMPT = `You are an expert web developer modifying an existing HTML file.
|
7 |
The user wants to apply changes based on their request.
|
8 |
You MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.
|
|
|
2 |
export const DIVIDER = "=======";
|
3 |
export const REPLACE_END = ">>>>>>> REPLACE";
|
4 |
export const MAX_REQUESTS_PER_IP = 2;
|
5 |
+
export const INITIAL_SYSTEM_PROMPT = `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING TAILWINDCSS. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`;
|
6 |
export const FOLLOW_UP_SYSTEM_PROMPT = `You are an expert web developer modifying an existing HTML file.
|
7 |
The user wants to apply changes based on their request.
|
8 |
You MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.
|
lib/providers.ts
CHANGED
@@ -57,17 +57,11 @@ export const MODELS = [
|
|
57 |
autoProvider: "novita",
|
58 |
isThinker: true,
|
59 |
},
|
60 |
-
{
|
61 |
-
value: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
62 |
-
label: "Qwen3 Coder 480B A35B Instruct",
|
63 |
-
providers: ["novita", "hyperbolic"],
|
64 |
-
autoProvider: "novita",
|
65 |
-
isNew: true,
|
66 |
-
},
|
67 |
{
|
68 |
value: "moonshotai/Kimi-K2-Instruct",
|
69 |
label: "Kimi K2 Instruct",
|
70 |
providers: ["together", "novita", "groq"],
|
71 |
autoProvider: "groq",
|
|
|
72 |
},
|
73 |
];
|
|
|
57 |
autoProvider: "novita",
|
58 |
isThinker: true,
|
59 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
{
|
61 |
value: "moonshotai/Kimi-K2-Instruct",
|
62 |
label: "Kimi K2 Instruct",
|
63 |
providers: ["together", "novita", "groq"],
|
64 |
autoProvider: "groq",
|
65 |
+
isNew: true,
|
66 |
},
|
67 |
];
|