File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1624,6 +1624,7 @@ class ChatProviderTemplate(TypedDict):
16241624 "provider" : "gpt_sovits_inference" ,
16251625 "provider_type" : "text_to_speech" ,
16261626 "enable" : False ,
1627+ "api_key" : "" ,
16271628 "api_base" : "http://127.0.0.1:8000" ,
16281629 "version" : "v4" ,
16291630 "character" : "" ,
Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ def __init__(
5858 provider_settings : dict ,
5959 ) -> None :
6060 super ().__init__ (provider_config , provider_settings )
61- self .api_key = provider_config .get (
62- "api_key"
63- )
61+ self .api_key = provider_config .get ("api_key" , "" )
6462 self .api_base = provider_config .get ("api_base" , "http://127.0.0.1:8000" )
6563 self .api_base = self .api_base .removesuffix ("/" )
6664 self .version = provider_config .get ("version" , "v4" )
You can’t perform that action at this time.
0 commit comments