Releases: Lebenoa/webui-api
Fixed: Some options issues
Add: `AlwaysOnScripts` & `DecodeAfterResult` & etc
Add
AlwaysOnScriptsfield:map[string]any
Scripts/Extension like
sd-webui-additional-networksDecodeAfterResultfield:boolAuto decode images after API resp. Sacrificing performance
BuildBatchFromDirfunc to packageextrascriptspackage. Contains all std scripts name in ConstUniPCconst tosamplerpackage- Comment/Description to
Base64FromFilesfunc
Change
- Boolean value with
trueas default value will now reverse
meaning: will change fromfalsetotrueandtruetofalse
Checkout a common oneDoNotSendImagestype Example struct { DoNotSendImages bool `json:"send_images"` } func (e *Example) correntParams() { e.DoNotSendImages = !e.DoNotSendImages } func (a *api) SendExample(e *Example) { e.correctParams() payload, err := json.Marshal(e) ... }
- Comment/Description of
Base64FromFileIgnorefunc
Remove
- All
CamelCaseconstant.ALL_CAPSstill there
v0.4.1
Latest field
Update txt2img, img2img, options field to match the current (as of Mar 12th 2023) version of SD Web UI API
Remove
UseDefaultfield ofConfigstruct. it seems redundant sinceDefaultfield can do the same
Change
Previously, extra single and extra batch can decode response image but their method is different. So I make it the same.
Both ExtraSingleImage and ExtraBatchImages struct now have DecodeAfterResult which will Decode Images after received response from API
Will make it to txt2img and img2img too, if I'm not lazy that is
Full Changelog: v0.4.0...v0.4.1
Now Support: Options & Interrogate API & etc..
New API Support
- Basic Authentication
- Options API
- Interrogate API
QoL (?)
- Prevent an error when
Config.BaseURLhas/as suffix. - No More field starts with
Default. Now inDefaultstruct. img2imghelper package now exported bothcamelCaseandALL_CAPSstyle.txt2imgcan now be upscale viatxt2ImageRespond.Upscale()method.
Full Changelog: v0.3.0...v0.4.0
Now Support: Extra Batch API
New API Support
- Extra Batch API
QoL (?)
- Add comment/description on IGNORE function
This may be helpful when don't want your app to crash when file doesn't exists.
Full Changelog: v0.2.0...v0.3.0
Now Support: PNG Info & Extra Single
New API Support
- PNG Info API
- Extra Single API
QoL (?)
- Helper package (only
webui-api/extraas of writing this note) will now export both
CamelCase and ALL_CAPS styles as well as struct basedFor example,
extra.SCALE_TO,extra.ScaleTo,extra.ResizeMode.ScaleToandextra.ResizeMode.SCALE_TOare the same thing
Now Support: Img2Img & Progress & Available Models API
New API Support:
- Img2img API
- Progress API
- Available Models API
QoL (?)
- Comment/Description on Txt2Img struct
- Comment/Description on Img2Img struct
- Helper for Img2Img is now struct based
First release
AUTOMATIC1111's Webui API
High level API written in GO.
Currently Support (And also roadmap)
- Auth Related
- Txt2Img
- Img2Img
- Extras (Single)
- Extras (Batch)
- PNG Info
- Progress
- Interrogate
- Interrupt
- Skip
- Options
- Get Available Model(s)