Add a "Copy as cURL" button to the chatbot endpoint dialog so users can reproduce a request in their terminal.
Where: client/components/ChatbotEndpointDialog.tsx.
Details:
- Build a
curl -X <method> <url> -H '<headers>' -d '<rendered body>' string from the current form fields (URL, method, headers JSON, request template with {{question}}/{{messages}} left as-is or filled with the test question).
- Copy to clipboard with a small confirmation.
Acceptance:
- Clicking the button copies a valid cURL command for the current config.
Add a "Copy as cURL" button to the chatbot endpoint dialog so users can reproduce a request in their terminal.
Where:
client/components/ChatbotEndpointDialog.tsx.Details:
curl -X <method> <url> -H '<headers>' -d '<rendered body>'string from the current form fields (URL, method, headers JSON, request template with{{question}}/{{messages}}left as-is or filled with the test question).Acceptance: