Added Bing's Chatbot, extended API and example, updated README

This commit is contained in:
Julian Müller (ChaoticByte) 2023-03-13 10:44:01 +01:00
parent 308bf0730f
commit c8361abe28
4 changed files with 110 additions and 17 deletions

View file

@ -40,6 +40,9 @@ class Message:
'''Convert to API format'''
return {"role": self.role, "content": self.text}
def __str__(self):
return f"Role: {self.role}, Text: {self.text}"
class ChatGPT:
'''ChatGPT API'''