fix: reduce error noise when converting speech to text

This commit is contained in:
zhayujie
2023-11-16 10:54:24 +08:00
parent a2ec1a063d
commit 5ad53c2b9c
6 changed files with 19 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ class Bridge(object):
"text_to_voice": conf().get("text_to_voice", "google"),
"translate": conf().get("translate", "baidu"),
}
model_type = conf().get("model")
model_type = conf().get("model") or const.GPT35
if model_type in ["text-davinci-003"]:
self.btype["chat"] = const.OPEN_AI
if conf().get("use_azure_chatgpt", False):