From efca1fb798db749edf835321552dc6b31c827faf Mon Sep 17 00:00:00 2001 From: anonymousException Date: Wed, 21 Feb 2024 15:45:06 +0800 Subject: [PATCH] fix openai translate error --- src/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c69ceb6..2a9257f 100644 --- a/src/main.py +++ b/src/main.py @@ -117,7 +117,13 @@ def confirm(self): data = {"engine": self.engineComboBox.currentText(), "key": self.keyEdit.text(), "secret": self.secretEdit.text(), str(self.engineComboBox.currentIndex()) + '_key': self.keyEdit.text(), - str(self.engineComboBox.currentIndex()) + '_secret': self.secretEdit.text()} + str(self.engineComboBox.currentIndex()) + '_secret': self.secretEdit.text(), + "rpm":self.rpmEdit.text(), + "rps":self.rpsEdit.text(), + "tpm":self.tpmEdit.text(), + "openai_model":self.modelComboBox.currentText(), + "openai_base_url":self.baseUrlEdit.text(), + "openai_model_index":self.modelComboBox.currentIndex()} json.dump(data, f) f.close() else: