feat: 赞赏码发送

This commit is contained in:
Rock Chin
2023-02-10 19:03:25 +08:00
parent 618487947b
commit d72c364962
7 changed files with 44 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ class OpenAIInteract:
self.key_mgr = pkg.openai.keymgr.KeysManager(api_key)
self.audit_mgr = pkg.audit.gatherer.DataGatherer()
logging.info("文字总使用量:%d", self.audit_mgr.get_total_text_length())
openai.api_key = self.key_mgr.get_using_key()
pkg.utils.context.set_openai_manager(self)