diff --git a/.gitignore b/.gitignore index 2bb4250..4031925 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,8 @@ test_outputs/ *.bak test_*.py +!bgm/default.mp3 + # Temp files temp/ tmp/ diff --git a/bgm/default.mp3 b/bgm/default.mp3 new file mode 100644 index 0000000..3216f3c Binary files /dev/null and b/bgm/default.mp3 differ diff --git a/web.py b/web.py index 9813e06..9b8e340 100644 --- a/web.py +++ b/web.py @@ -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("---")