mnky-chatbot-api / test_chat.py
ShadyAtef's picture
Upload 6 files
97b7a94 verified
Raw History Blame Contribute Delete
638 Bytes
import requests
URL = "http://localhost:7860/chat"
TESTS = [
"can u build me a website",
"idk what i need but i want ai in my business",
"how much rn?",
"can u make mvp asap?",
"do u guys do automations?",
"what does mnkylabs do?",
"can you build an ai bot for my website?",
"show me client revenue results",
"what tech stack do you guarantee?",
]
for question in TESTS:
response = requests.post(URL, json={"message": question}, timeout=60)
print("Q:", question)
print("A:", response.json()["answer"])
print("Services:", response.json()["recommendedServices"])
print("-" * 80)