B00TK1D / copilot-api

GitHub Copilot API
MIT License
131 stars 22 forks source link

Retrieval issue #14

Open Kacey-Tay opened 1 month ago

Kacey-Tay commented 1 month ago

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())
Kacey-Tay commented 1 month ago

I've also tried /api