From 8d1e5ab3c607bb814a03338c36b81079978ad64d Mon Sep 17 00:00:00 2001 From: ljhbt Date: Tue, 17 Sep 2024 17:21:29 +0200 Subject: [PATCH] Add testchat.http for ChatGPT API requests Introduce a new HTTP file to send and retrieve ChatGPT interactions. This includes a POST request to submit prompts and a GET request to retrieve the conversation. --- testchat.http | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testchat.http diff --git a/testchat.http b/testchat.http new file mode 100644 index 0000000..c86b4ae --- /dev/null +++ b/testchat.http @@ -0,0 +1,11 @@ +### Send Prompt to ChatGPT Endpoint +POST http://localhost:8080/chat/send +Content-Type: application/json + +{ + "requestId": "d2439d30-69bd-4136-b4b5-0d7b87074169", + "prompt": "Tell me a joke about Kotlin" +} +### +### Retrieve Complete Conversation +GET http://localhost:8080/chat/conversation/d2439d30-69bd-4136-b4b5-0d7b87074169 \ No newline at end of file