discontinue ora.sh api

This commit is contained in:
t.me/xtekky
2023-04-25 18:40:17 +01:00
parent c7f00a9dac
commit e341c75e5e
15 changed files with 2 additions and 371 deletions

32
you_test.py Normal file
View File

@@ -0,0 +1,32 @@
import you
# simple request with links and details
response = you.Completion.create(
prompt = "hello world",
detailed = True,
includelinks = True)
print(response)
# {
# "response": "...",
# "links": [...],
# "extra": {...},
# "slots": {...}
# }
# }
#chatbot
chat = []
while True:
prompt = input("You: ")
response = you.Completion.create(
prompt = prompt,
chat = chat)
print("Bot:", response["response"])
chat.append({"question": prompt, "answer": response["response"]})