mirror of
https://github.com/linyqh/NarratoAI.git
synced 2026-01-03 11:48:12 +00:00
0.3.2 发版2
This commit is contained in:
parent
624889a32f
commit
b37b0abaff
@ -15,7 +15,7 @@
|
||||
########### Vision NarratoAPI Key
|
||||
# NarratoAPI 是为了便捷访问不了 Gemini API 的用户, 提供的代理服务
|
||||
narrato_api_key = ""
|
||||
narrato_api_url = ""
|
||||
narrato_api_url = "https://narratoapi.scsmtech.cn/api/v1"
|
||||
narrato_vision_model = "gemini-1.5-flash"
|
||||
narrato_vision_key = ""
|
||||
narrato_llm_model = "gpt-4o"
|
||||
|
||||
@ -432,11 +432,11 @@ def generate_script(tr, params):
|
||||
'llm_api_key': text_api_key,
|
||||
'custom_prompt': st.session_state.get('custom_prompt', '')
|
||||
}
|
||||
logger.debug(f"Narrato API 请求参数: {api_params}")
|
||||
requests.post(
|
||||
response = requests.post(
|
||||
f"{config.app.get('narrato_api_url')}/video/config",
|
||||
params=api_params,
|
||||
timeout=30
|
||||
timeout=30,
|
||||
verify=False
|
||||
)
|
||||
custom_prompt = st.session_state.get('custom_prompt', '')
|
||||
processor = ScriptProcessor(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user