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.
This commit is contained in:
ljhbt 2024-09-17 17:21:29 +02:00
parent 929dcb9885
commit 8d1e5ab3c6
1 changed files with 11 additions and 0 deletions

11
testchat.http Normal file
View File

@ -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