mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🐞Fix: Stable Diffusion User Directory (#2270)
This commit is contained in:
parent
5c8b16fbaf
commit
038063d4d1
1 changed files with 2 additions and 2 deletions
|
|
@ -103,8 +103,8 @@ class StableDiffusionAPI extends StructuredTool {
|
||||||
const filepath = path.join(imageOutputPath, this.userId, imageName);
|
const filepath = path.join(imageOutputPath, this.userId, imageName);
|
||||||
this.relativePath = path.relative(clientPath, imageOutputPath);
|
this.relativePath = path.relative(clientPath, imageOutputPath);
|
||||||
|
|
||||||
if (!fs.existsSync(imageOutputPath)) {
|
if (!fs.existsSync(path.join(imageOutputPath, this.userId))) {
|
||||||
fs.mkdirSync(imageOutputPath, { recursive: true });
|
fs.mkdirSync(path.join(imageOutputPath, this.userId), { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue