From eb5ed97719c12d0c3cff4335ba1daa55ef655bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Fri, 30 Aug 2024 01:26:45 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/translator/azureopenai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/LunaTranslator/LunaTranslator/translator/azureopenai.py b/LunaTranslator/LunaTranslator/translator/azureopenai.py index 064eb36f..76bac2c0 100644 --- a/LunaTranslator/LunaTranslator/translator/azureopenai.py +++ b/LunaTranslator/LunaTranslator/translator/azureopenai.py @@ -8,6 +8,7 @@ class TS(gptcommon): def createheaders(self): _ = super().createheaders() _.update({"api-key": self.multiapikeycurrent["api-key"]}) + return _ def translate(self, query): self.checkempty(["api-key", "api-version", "endpoint", "deployment-id"])