-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.http
39 lines (28 loc) · 866 Bytes
/
client.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@baseURL = http://localhost:3001/api
# @name prompts
GET {{baseURL}}/prompts
###
# @name upload
POST {{baseURL}}/videos
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="example.mp3"
Content-Type: audio/mpeg
< ./example.mp3
------WebKitFormBoundary7MA4YWxkTrZu0gW--
###
# @name create-transcriptions
POST {{baseURL}}/transcriptions/ecf226cd-d611-4bf4-9e47-2d885002e83d
Content-Type: application/json
{
"prompt": "Clean archituecture, ddd"
}
###
# @name generate-ai-completion
POST {{baseURL}}/ai/generate/completion
Content-Type: application/json
{
"videoId": "ecf226cd-d611-4bf4-9e47-2d885002e83d",
"temperature": 0.5,
"prompt": "Generate a succinct summary of the video transcript given below: '''{transcription}'''"
}