add bgm
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -54,6 +54,8 @@ test_outputs/
|
|||||||
*.bak
|
*.bak
|
||||||
test_*.py
|
test_*.py
|
||||||
|
|
||||||
|
!bgm/default.mp3
|
||||||
|
|
||||||
# Temp files
|
# Temp files
|
||||||
temp/
|
temp/
|
||||||
tmp/
|
tmp/
|
||||||
|
|||||||
BIN
bgm/default.mp3
Normal file
BIN
bgm/default.mp3
Normal file
Binary file not shown.
8
web.py
8
web.py
@@ -223,10 +223,10 @@ def render_advanced_settings(config_manager: ConfigManager):
|
|||||||
if preset_config.get("api_key_url"):
|
if preset_config.get("api_key_url"):
|
||||||
st.markdown(f"🔑 [{tr('settings.llm.get_api_key')}]({preset_config['api_key_url']})")
|
st.markdown(f"🔑 [{tr('settings.llm.get_api_key')}]({preset_config['api_key_url']})")
|
||||||
else:
|
else:
|
||||||
# Custom: clear all fields (let user fill custom config)
|
# Custom: show current saved config (if any)
|
||||||
default_api_key = ""
|
default_api_key = current_llm["api_key"]
|
||||||
default_base_url = ""
|
default_base_url = current_llm["base_url"]
|
||||||
default_model = ""
|
default_model = current_llm["model"]
|
||||||
|
|
||||||
st.markdown("---")
|
st.markdown("---")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user