mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +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);
|
||||
this.relativePath = path.relative(clientPath, imageOutputPath);
|
||||
|
||||
if (!fs.existsSync(imageOutputPath)) {
|
||||
fs.mkdirSync(imageOutputPath, { recursive: true });
|
||||
if (!fs.existsSync(path.join(imageOutputPath, this.userId))) {
|
||||
fs.mkdirSync(path.join(imageOutputPath, this.userId), { recursive: true });
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue