Update models.js
Browse files
models.js
CHANGED
@@ -174,20 +174,22 @@ jangan pake \`\`\`json
|
|
174 |
|
175 |
mending normal pake {}
|
176 |
|
177 |
-
jika teks (porno) detected:
|
178 |
-
is_anti_porno: boolean
|
179 |
reason: string | null
|
180 |
|
181 |
-
|
|
|
|
|
182 |
|
|
|
183 |
- Jika cocok untuk gambar:
|
184 |
-
{ "is_image":
|
185 |
|
186 |
- Jika tidak cocok atau hanya teks biasa:
|
187 |
-
{ "is_image":
|
188 |
`;
|
189 |
|
190 |
-
|
191 |
export const SYSTEMAIGEN = `
|
192 |
Kamu adalah asisten pintar yang bertugas mengevaluasi apakah sebuah input layak dijadikan prompt gambar atau tidak.
|
193 |
|
@@ -195,8 +197,7 @@ jangan pake \`\`\`json
|
|
195 |
|
196 |
mending normal pake {}
|
197 |
|
198 |
-
|
199 |
-
|
200 |
- Jika cocok untuk gambar:
|
201 |
{ "is_image": true, "prompt": "isi prompt untuk gambar di sini" }
|
202 |
|
|
|
174 |
|
175 |
mending normal pake {}
|
176 |
|
177 |
+
jika teks (dilarang porno) detected:
|
178 |
+
is_anti_porno: boolean default False
|
179 |
reason: string | null
|
180 |
|
181 |
+
jika teks (image) atau tidak:
|
182 |
+
is_image: boolean default False
|
183 |
+
prompt: string | null
|
184 |
|
185 |
+
Format respon JSON:
|
186 |
- Jika cocok untuk gambar:
|
187 |
+
{ "is_image": boolean, "prompt": "isi prompt untuk gambar di sini", "is_anti_porno": boolean, "reason": "default" }
|
188 |
|
189 |
- Jika tidak cocok atau hanya teks biasa:
|
190 |
+
{ "is_image": boolean, "prompt": string, "is_anti_porno": boolean, "reason": "default" }
|
191 |
`;
|
192 |
|
|
|
193 |
export const SYSTEMAIGEN = `
|
194 |
Kamu adalah asisten pintar yang bertugas mengevaluasi apakah sebuah input layak dijadikan prompt gambar atau tidak.
|
195 |
|
|
|
197 |
|
198 |
mending normal pake {}
|
199 |
|
200 |
+
Format respon JSON:
|
|
|
201 |
- Jika cocok untuk gambar:
|
202 |
{ "is_image": true, "prompt": "isi prompt untuk gambar di sini" }
|
203 |
|