rebrand to Uncensored AI Studio and implement automated backend build scripts and multi-platform setup utilities
This commit is contained in:
1 parent
ba87eb8757
commit
eda6c7bd5d
13 files changed
+197
-151
No files matched your search
@@ -1548,7 +1548,7 @@ function getPathInfo(label, targetPath, type = "file") {
|
||||
function isDirWritable(dirPath) {
|
||||
try {
|
||||
fs.mkdirSync(dirPath, { recursive: true });
|
||||
const testFile = path.join(dirPath, `.local-ai-image-generator-write-test-${Date.now()}.tmp`);
|
||||
const testFile = path.join(dirPath, `.uncensored-ai-studio-write-test-${Date.now()}.tmp`);
|
||||
fs.writeFileSync(testFile, "ok", "utf8");
|
||||
fs.unlinkSync(testFile);
|
||||
return true;
|
||||
@@ -3267,7 +3267,7 @@ function requestHttpsJson(url, timeoutMs = 30000) {
|
||||
const req = https.get(url, {
|
||||
headers: {
|
||||
"Accept": "application/json",
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0",
|
||||
},
|
||||
timeout: timeoutMs,
|
||||
}, (res) => {
|
||||
@@ -4714,7 +4714,7 @@ function startImageBackendDownload(backendId, redirectCount = 0, redirectUrl = "
|
||||
const client = url.startsWith("https") ? https : http;
|
||||
const request = client.get(url, {
|
||||
headers: {
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0 (+https://github.com/techjarves/Local-AI-Image-Generator)",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0 (+https://github.com/techjarves/Uncensored-AI-Studio)",
|
||||
"Accept": "application/zip, application/octet-stream, */*",
|
||||
},
|
||||
}, (response) => {
|
||||
@@ -4911,7 +4911,7 @@ function startModelDownload(url, overrideFilename = null, targetDir = MODELS, ki
|
||||
const client = url.startsWith("https") ? https : http;
|
||||
const request = client.get(url, {
|
||||
headers: {
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0 (+https://github.com/techjarves/Local-AI-Image-Generator)",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0 (+https://github.com/techjarves/Uncensored-AI-Studio)",
|
||||
"Accept": "application/octet-stream, application/x-safetensors, */*",
|
||||
"Referer": "https://huggingface.co/",
|
||||
},
|
||||
@@ -6741,7 +6741,7 @@ server.timeout = 0; // Disable socket timeout for large model uploads/downloads
|
||||
server.listen(PORT_FRONTEND, "0.0.0.0", () => {
|
||||
console.log("");
|
||||
console.log(" ============================================================");
|
||||
console.log(" LOCAL AI IMAGE GENERATOR | Running");
|
||||
console.log(" UNCENSORED AI STUDIO | Running");
|
||||
console.log(" Server Build: " + SERVER_BUILD);
|
||||
console.log(" Frontend : http://localhost:" + PORT_FRONTEND);
|
||||
console.log(" Image API: http://127.0.0.1:" + PORT_BACKEND);
|
||||
|
||||
Reference in new issue
Block a user