This commit is contained in:
puke
2025-10-26 11:19:27 +08:00
committed by puke
parent f832424dab
commit 0bce687e0c
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@@ -54,6 +54,8 @@ test_outputs/
*.bak
test_*.py
!bgm/default.mp3
# Temp files
temp/
tmp/

BIN
bgm/default.mp3 Normal file

Binary file not shown.

8
web.py
View File

@@ -223,10 +223,10 @@ def render_advanced_settings(config_manager: ConfigManager):
if preset_config.get("api_key_url"):
st.markdown(f"🔑 [{tr('settings.llm.get_api_key')}]({preset_config['api_key_url']})")
else:
# Custom: clear all fields (let user fill custom config)
default_api_key = ""
default_base_url = ""
default_model = ""
# Custom: show current saved config (if any)
default_api_key = current_llm["api_key"]
default_base_url = current_llm["base_url"]
default_model = current_llm["model"]
st.markdown("---")