mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
Update Launcher.bat
+added ability to add api key for image generation
This commit is contained in:
93
Launcher.bat
93
Launcher.bat
@@ -2638,17 +2638,18 @@ cd /d "%sdwebui_install_path%"
|
||||
cls
|
||||
echo %blue_fg_strong%^| ^> / Home / Toolbox / App Installer / sdwebui Models ^|%reset%
|
||||
echo %blue_fg_strong% ==============================================================%reset%
|
||||
echo 1. Install a custom model
|
||||
echo 1. Install a custom model
|
||||
echo 2. Add Civit AI API Key
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| SD 1.5 Models ^|%reset%
|
||||
echo 2. Install Hassaku [ANIME MODEL]
|
||||
echo 3. Install YiffyMix [FURRY MODEL]
|
||||
echo 4. Install Perfect World [REALISM MODEL]
|
||||
echo 3. Install Hassaku [ANIME MODEL]
|
||||
echo 4. Install YiffyMix [FURRY MODEL]
|
||||
echo 5. Install Perfect World [REALISM MODEL]
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| SDXL Models ^|%reset%
|
||||
echo 5. Install Hassaku XL [ANIME MODEL]
|
||||
echo 6. Install AutismMix_confetti [FURRY MODEL]
|
||||
echo 7. Install Pony Realism [REALISM MODEL]
|
||||
echo 6. Install Hassaku XL [ANIME MODEL]
|
||||
echo 7. Install AutismMix_confetti [FURRY MODEL]
|
||||
echo 8. Install Pony Realism [REALISM MODEL]
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| FLUX Models ^|%reset%
|
||||
echo NOT SUPPORTED YET.
|
||||
@@ -2668,18 +2669,20 @@ REM ######## APP INSTALLER IMAGE GENERATION - BACKEND #########
|
||||
if "%app_installer_sdwebui_model_choice%"=="1" (
|
||||
call :install_sdwebui_model_custom
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="2" (
|
||||
goto :install_sdwebui_model_hassaku
|
||||
goto :install_sdwebui_model_apikey
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="3" (
|
||||
goto :install_sdwebui_model_yiffymix
|
||||
goto :install_sdwebui_model_hassaku
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="4" (
|
||||
goto :install_sdwebui_model_perfectworld
|
||||
goto :install_sdwebui_model_yiffymix
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="5" (
|
||||
goto :install_sdwebui_model_hassakuxl
|
||||
goto :install_sdwebui_model_perfectworld
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="6" (
|
||||
goto :install_sdwebui_model_autismMixconfetti
|
||||
goto :install_sdwebui_model_hassakuxl
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="7" (
|
||||
goto :install_sdwebui_model_autismMixconfetti
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="8" (
|
||||
goto :install_sdwebui_model_ponyrealism
|
||||
REM ) else if "%app_installer_sdwebui_model_choice%"=="8" (
|
||||
REM ) else if "%app_installer_sdwebui_model_choice%"=="9" (
|
||||
REM goto :install_sdwebui_model_flux
|
||||
) else if "%app_installer_sdwebui_model_choice%"=="0" (
|
||||
goto :install_sdwebui_menu
|
||||
@@ -2777,6 +2780,14 @@ goto :install_sdwebui_model_menu
|
||||
|
||||
:install_sdwebui_model_apikey
|
||||
cls
|
||||
echo To generate a Civit AI API key, follow these steps:
|
||||
echo * %cyan_fg_strong%Go to%reset% %yellow_fg_strong%https://civitai.com/user/account%reset% %cyan_fg_strong%or click on your user picture then click on Account settings%reset%
|
||||
echo * %cyan_fg_strong%Scroll down until you see "API Keys"%reset%
|
||||
echo * %cyan_fg_strong%Click Add API key%reset%
|
||||
echo * %cyan_fg_strong%Name it "civitdl" then click on Save%reset%
|
||||
echo * %cyan_fg_strong%Copy the API Key and paste it here below%reset%
|
||||
echo.
|
||||
|
||||
set /p civitaiapikey="(0 to cancel)Insert API key: "
|
||||
|
||||
if "%civitaiapikey%"=="0" goto :install_sdwebui_model_menu
|
||||
@@ -2786,6 +2797,8 @@ civitconfig default --api-key %civitaiapikey%
|
||||
pause
|
||||
goto :install_sdwebui_model_menu
|
||||
|
||||
|
||||
|
||||
REM ############################################################
|
||||
REM ## APP INSTALLER STABLE DIFUSSION WEBUI FORGE - FRONTEND ###
|
||||
REM ############################################################
|
||||
@@ -2909,22 +2922,23 @@ call conda activate sdwebuiforge
|
||||
cd /d "%sdwebuiforge_install_path%"
|
||||
|
||||
cls
|
||||
echo %blue_fg_strong%^| ^> / Home / Toolbox / App Installer / sdwebuiforge Models ^|%reset%
|
||||
echo %blue_fg_strong%^| ^> / Home / Toolbox / App Installer / SDWebUI Forge Models ^|%reset%
|
||||
echo %blue_fg_strong% ==============================================================%reset%
|
||||
echo 1. Install a custom model
|
||||
echo 1. Install a custom model
|
||||
echo 2. Add Civit AI API Key
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| SD 1.5 Models ^|%reset%
|
||||
echo 2. Install Hassaku [ANIME MODEL]
|
||||
echo 3. Install YiffyMix [FURRY MODEL]
|
||||
echo 4. Install Perfect World [REALISM MODEL]
|
||||
echo 3. Install Hassaku [ANIME MODEL]
|
||||
echo 4. Install YiffyMix [FURRY MODEL]
|
||||
echo 5. Install Perfect World [REALISM MODEL]
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| SDXL Models ^|%reset%
|
||||
echo 5. Install Hassaku XL [ANIME MODEL]
|
||||
echo 6. Install AutismMix_confetti [FURRY MODEL]
|
||||
echo 7. Install Pony Realism [REALISM MODEL]
|
||||
echo 6. Install Hassaku XL [ANIME MODEL]
|
||||
echo 7. Install AutismMix_confetti [FURRY MODEL]
|
||||
echo 8. Install Pony Realism [REALISM MODEL]
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| FLUX Models ^|%reset%
|
||||
echo 8. Install Flux.1-Dev/Schnell BNB NF4 [REALISM MODEL]
|
||||
echo 9. Install Flux.1-Dev/Schnell BNB NF4 [REALISM MODEL]
|
||||
echo %cyan_fg_strong% ______________________________________________________________%reset%
|
||||
echo %cyan_fg_strong%^| Menu Options: ^|%reset%
|
||||
echo 0. Back
|
||||
@@ -2941,18 +2955,20 @@ REM ######## APP INSTALLER IMAGE GENERATION - BACKEND #########
|
||||
if "%app_installer_sdwebuiforge_model_choice%"=="1" (
|
||||
call :install_sdwebuiforge_model_custom
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="2" (
|
||||
goto :install_sdwebuiforge_model_hassaku
|
||||
goto :install_sdwebui_model_apikey
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="3" (
|
||||
goto :install_sdwebuiforge_model_yiffymix
|
||||
goto :install_sdwebuiforge_model_hassaku
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="4" (
|
||||
goto :install_sdwebuiforge_model_perfectworld
|
||||
goto :install_sdwebuiforge_model_yiffymix
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="5" (
|
||||
goto :install_sdwebuiforge_model_hassakuxl
|
||||
goto :install_sdwebuiforge_model_perfectworld
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="6" (
|
||||
goto :install_sdwebuiforge_model_autismMixconfetti
|
||||
goto :install_sdwebuiforge_model_hassakuxl
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="7" (
|
||||
goto :install_sdwebuiforge_model_ponyrealism
|
||||
goto :install_sdwebuiforge_model_autismMixconfetti
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="8" (
|
||||
goto :install_sdwebuiforge_model_ponyrealism
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="9" (
|
||||
goto :install_sdwebuiforge_model_flux
|
||||
) else if "%app_installer_sdwebuiforge_model_choice%"=="0" (
|
||||
goto :install_sdwebuiforge_menu
|
||||
@@ -3042,9 +3058,28 @@ if errorlevel 1 (
|
||||
goto :install_sdwebuiforge_model_custom
|
||||
)
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Downloading...
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Downloading...
|
||||
civitdl %civitaimodelid% -s basic "models\Stable-diffusion"
|
||||
pause
|
||||
goto :install_sdwebuiforge_model_menu
|
||||
|
||||
|
||||
:install_sdwebuiforge_model_apikey
|
||||
cls
|
||||
echo To generate a Civit AI API key, follow these steps:
|
||||
echo * %cyan_fg_strong%Go to%reset% %yellow_fg_strong%https://civitai.com/user/account%reset% %cyan_fg_strong%or click on your user picture then click on Account settings%reset%
|
||||
echo * %cyan_fg_strong%Scroll down until you see "API Keys"%reset%
|
||||
echo * %cyan_fg_strong%Click Add API key%reset%
|
||||
echo * %cyan_fg_strong%Name it "civitdl" then click on Save%reset%
|
||||
echo * %cyan_fg_strong%Copy the API Key and paste it here below%reset%
|
||||
echo.
|
||||
|
||||
set /p civitaiapikey="(0 to cancel)Insert API key: "
|
||||
|
||||
if "%civitaiapikey%"=="0" goto :install_sdwebuiforge_model_menu
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Adding API key...
|
||||
civitconfig default --api-key %civitaiapikey%
|
||||
pause
|
||||
goto :install_sdwebuiforge_model_menu
|
||||
|
||||
|
||||
Reference in New Issue
Block a user