Skip to content

Commit

Permalink
<fix> fix openai translate error
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousException committed Feb 21, 2024
1 parent 77f192e commit efca1fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit efca1fb

Please sign in to comment.