Skip to content

Commit c070846

Browse files
Update manim_generator.html
1 parent 866ac32 commit c070846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manim_generator.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ <h3>Output:</h3>
132132

133133
try {
134134
if (!apiKey) {
135-
throw new Error("API key is missing. Please configure it in the code.");
135+
throw new Error("API key is missing. Please configure it in the code.(This code is a fork of the original code)");
136136
}
137137

138138
const response = await fetch("https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=" + apiKey, {
@@ -145,7 +145,7 @@ <h3>Output:</h3>
145145
{
146146
parts: [
147147
{
148-
text: `You are a Manim code generator. Output only valid Python code as plain text. Do not explain anything. Do not format using triple quotes or markdown.\nPrompt:\n${prompt}`
148+
text: `You are a Manim code generator.If there is any plain text or string, prefer using British English. Output only valid Python code as plain text. Do not explain anything. Do not format using triple quotes or markdown.\nPrompt:\n${prompt}`
149149
}
150150
]
151151
}
@@ -210,7 +210,7 @@ <h3>Output:</h3>
210210
link.click();
211211
showMessage("Code downloaded!", "success");
212212
} else {
213-
showMessage("Nothing to download. Please generate code first.", "info");
213+
showMessage("Nothing to download. Please generate the code first.", "info");
214214
}
215215
}
216216

0 commit comments

Comments
 (0)