Former-commit-id: b4c3adb62c6eb6687281ac3db62d4ee1acfcc502
pull/160/head
Zack 2 years ago
parent 7f690af721
commit a6ccb8e222

@ -26,7 +26,7 @@ class EdgeGPTModel:
self.cookies = json.loads(open(cookies_path, encoding="utf-8").read()) self.cookies = json.loads(open(cookies_path, encoding="utf-8").read())
self.bot = asyncio.run(Chatbot.create(cookies=self.cookies)) self.bot = asyncio.run(Chatbot.create(cookies=self.cookies))
def ask(self, prompt: str, style: ConversationStyle = ConversationStyle.creative) -> str: def __call(self, prompt: str, style: ConversationStyle = ConversationStyle.creative) -> str:
""" """
Get a text response using the EdgeGPT model based on the provided prompt. Get a text response using the EdgeGPT model based on the provided prompt.
""" """

Loading…
Cancel
Save