Sends a request to the AI service with a provided message context and function.
It calls the call_gpt
function to interact with the OpenAI API, printing relevant agent messages.
Sends a request to the AI service and decodes the response into a specific type.
Checks the HTTP status code of a URL using the provided client.
Extends an AI function by formatting the input and creating a system message.
This function prepares a message in the format expected by GPT models.
Reads the contents of the web server code template from the specified path.
Reads the contents of the main server file from the specified path.
Saves the API endpoints to a JSON file.
Saves the backend code to the main2.rs
file.