chore/make-it-compatible-with-chatgpt #4

Merged
ssdd merged 2 commits from chore/make-it-compatible-with-chatgpt into main 2024-10-13 14:25:33 +00:00
Showing only changes of commit fc357d17f2 - Show all commits

@ -11,7 +11,11 @@ def send_post_request(prompt):
url = "http://localhost:19194/" # Update this to your actual server URL url = "http://localhost:19194/" # Update this to your actual server URL
payload = prompt.title() payload = prompt.title()
response = requests.post(url, json=payload) response = requests.post(url, json=payload)
return response.text json = response.json()
if "response" in json:
return json["response"]
else:
return json
# Custom CSS to fix the input box at the bottom of the page # Custom CSS to fix the input box at the bottom of the page