You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DEBUG] 15:32:35:644889900: ollama_generate_json: [dolphin3:8b] [Describe a rabbit in 3 words]
30
-
[DEBUG] 15:32:35:684773200: ollama_generate_json: json_payload: {"model":"dolphin3:8b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
31
-
[DEBUG] 15:32:35:722860400: ollama_api_post: [/api/generate] {"model":"dolphin3:8b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
32
-
[DEBUG] 15:32:35:757659800: _call_curl: [POST] [/api/generate] {"model":"dolphin3:8b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
[DEBUG] 19:56:15:889406100: ollama_generate_json: [smollm2:1.7b] [Describe a rabbit in 3 words]
30
+
[DEBUG] 19:56:15:927197800: ollama_generate_json: json_payload: {"model":"smollm2:1.7b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
31
+
[DEBUG] 19:56:15:977858600: ollama_api_post: [/api/generate] {"model":"smollm2:1.7b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
32
+
[DEBUG] 19:56:16:000354200: _call_curl: [POST] [/api/generate] {"model":"smollm2:1.7b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
@@ -4,113 +4,183 @@ A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ol
4
4
5
5
## Setup
6
6
7
-
OLLAMA_HOST:
7
+
OLLAMA_HOST: http://localhost:11434
8
8
OBL_API: http://localhost:11434
9
9
10
10
11
11
## Demo
12
12
13
13
```bash
14
-
ollama_generate_json -m "gemma3n:e2b" -p "Describe a rabbit in 3 words"
14
+
ollama_generate_json -m "granite3.3:2b" -p "Describe a rabbit in 3 words"
15
15
```
16
16
```json
17
17
{
18
-
"model": "gemma3n:e2b",
19
-
"created_at": "2025-08-23T13:32:42.2608687Z",
20
-
"response": "Cute, fluffy, quick. \n",
18
+
"model": "granite3.3:2b",
19
+
"created_at": "2025-08-23T17:56:18.8180891Z",
20
+
"response": "Fast, Fluffy, Burrowing.",
21
21
"done": true,
22
22
"done_reason": "stop",
23
23
"context": [
24
-
105,
25
-
2364,
26
-
107,
27
-
82858,
24
+
49152,
25
+
2946,
26
+
49153,
27
+
39558,
28
+
390,
29
+
17071,
30
+
2821,
31
+
44,
32
+
30468,
33
+
225,
34
+
36,
35
+
34,
36
+
36,
37
+
38,
38
+
32,
39
+
203,
40
+
4282,
41
+
884,
42
+
8080,
43
+
278,
44
+
659,
45
+
30,
46
+
18909,
47
+
810,
48
+
25697,
49
+
32,
50
+
2448,
51
+
884,
52
+
312,
53
+
17247,
54
+
19551,
55
+
47330,
56
+
32,
57
+
0,
58
+
203,
59
+
49152,
28
60
496,
29
-
27973,
30
-
528,
31
-
236743,
32
-
236800,
33
-
4171,
34
-
106,
35
-
107,
36
-
105,
37
-
4368,
61
+
49153,
62
+
8591,
63
+
312,
64
+
40810,
65
+
328,
66
+
225,
67
+
37,
68
+
8153,
69
+
0,
70
+
203,
71
+
49152,
72
+
17594,
73
+
49153,
74
+
12200,
75
+
30,
76
+
5449,
77
+
2966,
38
78
107,
39
-
55973,
40
-
236764,
41
-
7745,
42
-
236760,
43
-
35411,
44
-
236764,
45
-
3823,
46
-
236761,
47
-
236743,
48
-
107
79
+
30,
80
+
34630,
81
+
643,
82
+
299,
83
+
32
49
84
],
50
-
"total_duration": 4646174500,
51
-
"load_duration": 4275268700,
52
-
"prompt_eval_count": 16,
53
-
"prompt_eval_duration": 221857900,
54
-
"eval_count": 9,
55
-
"eval_duration": 146994200
85
+
"total_duration": 1203194400,
86
+
"load_duration": 985779500,
87
+
"prompt_eval_count": 50,
88
+
"prompt_eval_duration": 117790400,
89
+
"eval_count": 11,
90
+
"eval_duration": 97787200
56
91
}
57
92
58
93
```
59
94
60
95
## Demo Debug
61
96
62
97
```bash
63
-
OBL_DEBUG=1 ollama_generate_json -m "gemma3n:e2b" -p "Describe a rabbit in 3 words"
98
+
OBL_DEBUG=1 ollama_generate_json -m "granite3.3:2b" -p "Describe a rabbit in 3 words"
64
99
```
65
100
```json
66
-
[DEBUG] 15:32:42:326972100: ollama_generate_json: [gemma3n:e2b] [Describe a rabbit in 3 words]
67
-
[DEBUG] 15:32:42:375982400: ollama_generate_json: json_payload: {"model":"gemma3n:e2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
68
-
[DEBUG] 15:32:42:422972900: ollama_api_post: [/api/generate] {"model":"gemma3n:e2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
69
-
[DEBUG] 15:32:42:446332400: _call_curl: [POST] [/api/generate] {"model":"gemma3n:e2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
[DEBUG] 19:56:18:890341100: ollama_generate_json: [granite3.3:2b] [Describe a rabbit in 3 words]
102
+
[DEBUG] 19:56:18:941769400: ollama_generate_json: json_payload: {"model":"granite3.3:2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
103
+
[DEBUG] 19:56:18:980143500: ollama_api_post: [/api/generate] {"model":"granite3.3:2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
104
+
[DEBUG] 19:56:19:000915400: _call_curl: [POST] [/api/generate] {"model":"granite3.3:2b","prompt":"Describe a rabbit in 3 words","stream":false,"thinking":false}
0 commit comments