added gpt4free package

This commit is contained in:
Raju Komati
2023-04-29 14:55:24 +05:30
parent 94b30306f0
commit 54b4c789a7
66 changed files with 492 additions and 422 deletions

View File

@@ -1,4 +1,4 @@
from openai_rev import you
from gpt4free import you
# simple request with links and details
response = you.Completion.create(prompt="hello world", detailed=True, include_links=True)
@@ -22,6 +22,6 @@ while True:
response = you.Completion.create(prompt=prompt, chat=chat)
print("Bot:", response["response"])
print("Bot:", response.text)
chat.append({"question": prompt, "answer": response["response"]})
chat.append({"question": prompt, "answer": response.text})