Documentation
¶
Overview ¶
* @Author: SpenserCai * @Date: 2023-08-16 11:05:40 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-13 13:49:25 * @Description: file content
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SDWebUi struct { Servers []ServerItem `json:"servers"` DefaultSetting DefaultSetting `json:"default_setting"` } `json:"sd_webui"` Discord struct { AppId string `json:"app_id"` Token string `json:"token"` ClientSecret string `json:"client_secret"` OAuth2RedirectUrl string `json:"oauth2_redirect_base_url"` ServerId string `json:"server_id"` BotName string `json:"bot_name"` BotAvatar string `json:"bot_avatar"` BotUrl string `json:"bot_url"` DiscordServerUrl string `json:"discord_server_url"` } `json:"discord"` UserCenter UserCenter `json:"user_center"` DisableReturnGenInfo bool `json:"disable_return_gen_info"` WebSite WebSite `json:"website"` }
type DefaultSetting ¶ added in v0.3.0
type DefaultSetting struct { CfgScale float64 `json:"cfg_scale"` NegativePrompt string `json:"negative_prompt"` Sampler string `json:"sampler"` Height int64 `json:"height"` Width int64 `json:"width"` Steps int64 `json:"steps"` Model string `json:"sd_model_checkpoint"` Vae string `json:"sd_vae"` ClipSkip int64 `json:"clip_skip"` }
type ServerItem ¶
type UserCenter ¶ added in v0.4.2
type WebSite ¶ added in v0.10.5
type WebSite struct { Api struct { Host string `json:"host"` Port int `json:"port"` JwtSecret string `json:"jwt_secret"` AuthCallbackUrl string `json:"auth_callback_url"` } `json:"api"` Web struct { Host string `json:"host"` Port int `json:"port"` StartWithServer bool `json:"start_with_server"` OpenBrowser bool `json:"open_browser"` } `json:"web"` }
Click to show internal directories.
Click to hide internal directories.