-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostman_collection.json
More file actions
48 lines (48 loc) · 1.61 KB
/
Copy pathpostman_collection.json
File metadata and controls
48 lines (48 loc) · 1.61 KB
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
40
41
42
43
44
45
46
47
48
{
"info": {
"_postman_id": "minivault-api-collection",
"name": "MiniVault API",
"description": "Interact with the MiniVault API for prompt/response generation using Ollama or a stub fallback.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "/generate (One-shot response)",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"prompt\": \"What is the best thing about apples?\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/generate",
"protocol": "http",
"host": ["127.0.0.1"],
"port": "8000",
"path": ["generate"]
},
"description": "Send a prompt and receive a full response in one shot. Uses Ollama if available, otherwise returns a stubbed response."
}
},
{
"name": "/stream (Streaming response)",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"prompt\": \"What is the best thing about apples?\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/stream",
"protocol": "http",
"host": ["127.0.0.1"],
"port": "8000",
"path": ["stream"]
},
"description": "Send a prompt and receive a streaming response (token-by-token). Uses Ollama if available, otherwise streams a stubbed response."
}
}
]
}