Skip to content

Add a "Copy as cURL" button to the endpoint dialog #3

@prat3ik

Description

@prat3ik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions