mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-06 19:45:30 +00:00
fix: recreate convo after rotating key
This commit is contained in:
parent
9d807ba23a
commit
ed165fcb78
@ -96,6 +96,7 @@ class Gemini(Base):
|
|||||||
|
|
||||||
def rotate_key(self):
|
def rotate_key(self):
|
||||||
genai.configure(api_key=next(self.keys))
|
genai.configure(api_key=next(self.keys))
|
||||||
|
self.create_convo()
|
||||||
|
|
||||||
def translate(self, text):
|
def translate(self, text):
|
||||||
delay = 1
|
delay = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user