Fix localai v2.0+ image generation
Support specific output image format(jpeg, png) and size
This commit is contained in:
parent
4dd62d3940
commit
e0aff19905
6 changed files with 107 additions and 31 deletions
|
|
@ -15,5 +15,7 @@ REPLY_COUNT=1
|
|||
SYSTEM_PROMPT="You are ChatGPT, a large language model trained by OpenAI. Respond conversationally"
|
||||
TEMPERATURE=0.8
|
||||
IMAGE_GENERATION_ENDPOINT="http://127.0.0.1:7860/sdapi/v1/txt2img"
|
||||
IMAGE_GENERATION_BACKEND="sdwui" # openai or sdwui
|
||||
IMAGE_GENERATION_BACKEND="sdwui" # openai or sdwui or localai
|
||||
IMAGE_GENERATION_SIZE="512x512"
|
||||
IMAGE_FORMAT="jpeg"
|
||||
TIMEOUT=120.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue