I've got a py script to send a request, yet I'm not getting any response. But I am getting a 200 reply.
import requests
url = "http://localhost:3022"
response = requests.post(url, json=
{
"prompt": "Write a python function that prints the Fibonacci sequence up to a given number.",
"language": "python"
})
print(response.status_code)
if response.status_code == 200:
print(response.text)
print(response.json())
I've got a py script to send a request, yet I'm not getting any response. But I am getting a 200 reply.