can you do it?
Explanation of Changes Container Adjustments:
By using a div container rather than
, the HTML structure from Markdown (like bullet points or numbered lists) can be displayed correctly. Error Handling:
The try-catch block and network check if (!response.ok) help ensure robust error handling, displaying errors if the API call fails. Clearing Input and Disabling Submit Button:
After each successful query, the input field clears, and the submit button is disabled until new text is entered.