-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.http
37 lines (27 loc) · 863 Bytes
/
routes.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
# @name get-prompts
GET http://localhost:3333/prompts
###
# @name upload
POST http://localhost:3333/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-transcription
POST http://localhost:3333/videos/a8d2df0d-1774-4928-a3f9-bc83729c9603/transcription
Content-Type: application/json
{
"prompt": "clean architecture, ddd"
}
###
# @name generate-ai-completion
POST http://localhost:3333/ai/complete
Content-Type: application/json
{
"videoId": "a8d2df0d-1774-4928-a3f9-bc83729c9603",
"temperature": 0.5,
"prompt": "Gere um resumo da transcrição do vídeo informada a seguir: '''{transcription}'''"
}