diff --git a/LunaTranslator/LunaTranslator/translator/gptcommon.py b/LunaTranslator/LunaTranslator/translator/gptcommon.py index 31072dd6..b470a141 100644 --- a/LunaTranslator/LunaTranslator/translator/gptcommon.py +++ b/LunaTranslator/LunaTranslator/translator/gptcommon.py @@ -52,7 +52,7 @@ class gptcommon(basetrans): def createheaders(self): _ = {"Authorization": "Bearer " + self.multiapikeycurrent["SECRET_KEY"]} - if "openai.azure.com/openai/deployments/" in self.config("API接口地址", ""): + if "openai.azure.com/openai/deployments/" in self.config.get("API接口地址", ""): _.update({"api-key": self.multiapikeycurrent["SECRET_KEY"]}) return _ diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index fbe1fcdd..082e6848 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 34) -set(VERSION_PATCH 2) +set(VERSION_PATCH 3) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)