invoke-ai / invoke-ai/InvokeAI

[enhancement]: Auto-remove the comma (,) preceding or proceeding {prompt} when the prompt is empty.

Open
#6,764 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Contact Details

_No response_

### What should this feature add?

Under current implementation of prompt templates, if a prompt template has a comma (,) preceding or proceeding {prompt}, it is used as it is even if no prompt is given, altering the image generation slightly. It would be great if it were removed automatically when no additional prompt was given.
![SS](https://github.com/user-attachments/assets/9133cae2-469b-4d8e-9a53-752ef4ab7916)

### Alternatives

_No response_

### Additional Content

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.