This pull request introduces a new Python script aimed at troubleshooting by calling an external API and printing its response. The script, print_api_response.py, makes a GET request to a predefined URL and prints the JSON response to the console. This addition is intended to assist in debugging and development by providing a straightforward way to verify the API's response.
Summary
Added a new Python script print_api_response.py which:
Utilizes the requests library to make a GET request to http://example.com/api/assistant.
Prints the JSON response from the API to the console.
This script can be executed directly as it checks for __name__ == "__main__" to call the print_assistant_api_response function.
Fixes #3.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces a new Python script aimed at troubleshooting by calling an external API and printing its response. The script,
print_api_response.py
, makes a GET request to a predefined URL and prints the JSON response to the console. This addition is intended to assist in debugging and development by providing a straightforward way to verify the API's response.Summary
print_api_response.py
which:requests
library to make a GET request tohttp://example.com/api/assistant
.__name__ == "__main__"
to call theprint_assistant_api_response
function.Fixes #3.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: