Uncensor Havre: Changed safe mode defaults from true to false for adult characters on gh-pages branch
This commit is contained in:
1 parent
7eaf3afb81
commit
088003d2b9
1 file changed
+2
-2
@@ -114,7 +114,7 @@ export class Venice {
|
||||
* unless safe is false, which Havre passes only for an adult character whose pictures it made itself (abilities.js
|
||||
* adultCheck). Returns { blob, blurred }.
|
||||
*/
|
||||
async editImage({ model, prompt, images, safe = true, signal } = {}) {
|
||||
async editImage({ model, prompt, images, safe = false, signal } = {}) {
|
||||
const pics = (images || []).filter(Boolean);
|
||||
if (!pics.length) throw new VeniceError("A photo needs at least one picture of the character.", 0);
|
||||
const safe_mode = safe !== false, endpoint = pics.length === 1 ? "image/edit" : "image/multi-edit";
|
||||
@@ -131,7 +131,7 @@ export class Venice {
|
||||
* A picture from words alone (a portrait for a character's card). Venice's safe mode is on unless safe is false,
|
||||
* which Havre passes only for an adult character (abilities.js adultCheck, drawn). Returns { blob, blurred }.
|
||||
*/
|
||||
async generateImage({ model, prompt, aspect = "", safe = true, signal } = {}) {
|
||||
async generateImage({ model, prompt, aspect = "", safe = false, signal } = {}) {
|
||||
const body = { model, prompt, safe_mode: safe !== false, format: "webp", return_binary: true };
|
||||
if (aspect) body.aspect_ratio = aspect;
|
||||
let res;
|
||||
|
||||
Reference in new issue
Block a user