Skip to content

Commit 2cf51a9

Browse files
committed
demos v0.45.5
1 parent 81d8a96 commit 2cf51a9

31 files changed

+1217
-1254
lines changed

demos/_is_valid_json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# _is_valid_json
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
| test | result | return |
66
|------|--------|--------|

demos/_is_valid_model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# _is_valid_model
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
| test | output | return | result |
66
|------|--------|--------|--------|
77
| `mistral:7b` | mistral:7b | 0 | ✅ PASS |
8-
| `` | gpt-oss:120b | 0 | ✅ PASS |
8+
| `` | gpt-oss:20b | 0 | ✅ PASS |
99
| `hf.co/user/Model-name:QUANT` | hf.co/user/Model-name:QUANT | 0 | ✅ PASS |
1010
| `abcdefghijklmnopqrstuvwxyz` | abcdefghijklmnopqrstuvwxyz | 0 | ✅ PASS |
1111
| `1234567890` | 1234567890 | 0 | ✅ PASS |

demos/about.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# ollama_lib_about, ollama_lib_version
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
## Demo
66

77
```bash
88
ollama_lib_version
99
```
10-
0.45.3
10+
0.45.5
1111

1212
```bash
1313
ollama_lib_about
1414
```
1515
```
16-
Ollama Bash Lib v0.45.3
16+
Ollama Bash Lib v0.45.5
1717
A Bash Library to interact with Ollama
1818
1919
OLLAMA_LIB_NAME : Ollama Bash Lib
20-
OLLAMA_LIB_VERSION : 0.45.3
20+
OLLAMA_LIB_VERSION : 0.45.5
2121
OLLAMA_LIB_URL : https://github.com/attogram/ollama-bash-lib
2222
OLLAMA_LIB_DISCORD : https://discord.gg/BGQJCbYVBa
2323
OLLAMA_LIB_LICENSE : MIT

demos/help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# help via -h and --help
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44
## Testing -h for all functions (first argument)
55

66
`ollama_api_get -h`

demos/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_list, ollama_list_json
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
```
66
ollama_list

demos/messages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_messages, ollama_messages_add, ollama_messages_count
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44
```
55
66
ollama_messages_count: 0

demos/ollama_api_get.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_api_get
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
## Setup
66

@@ -42,12 +42,12 @@ result: output: {"version":"0.0.0"}
4242
```
4343
ollama_api_get
4444
45-
[DEBUG] 22:55:45:164316000: ollama_api_get: []
46-
[DEBUG] 22:55:45:195509400: _call_curl: [GET] []
47-
[DEBUG] 22:55:45:229228200: _call_curl: OLLAMA_LIB_API: https://ollama.com
48-
[DEBUG] 22:55:45:251170600: _call_curl: Turbo Mode
49-
[DEBUG] 22:55:45:275213100: _call_curl: args: -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X GET https://ollama.com
50-
[DEBUG] 22:55:45:605732800: ollama_api_get: success
45+
[DEBUG] 23:08:47:824206700: ollama_api_get: []
46+
[DEBUG] 23:08:47:847112500: _call_curl: [GET] []
47+
[DEBUG] 23:08:47:869120500: _call_curl: OLLAMA_LIB_API: https://ollama.com
48+
[DEBUG] 23:08:47:894303500: _call_curl: Turbo Mode
49+
[DEBUG] 23:08:47:914616100: _call_curl: args: -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X GET https://ollama.com
50+
[DEBUG] 23:08:48:232587000: ollama_api_get: success
5151
result: lines: 394
5252
result: output:
5353
@@ -63,12 +63,12 @@ result: output:
6363
```
6464
ollama_api_get "/api/version"
6565
66-
[DEBUG] 22:55:45:683892600: ollama_api_get: [/api/version]
67-
[DEBUG] 22:55:45:707385600: _call_curl: [GET] [/api/version]
68-
[DEBUG] 22:55:45:730168600: _call_curl: OLLAMA_LIB_API: https://ollama.com
69-
[DEBUG] 22:55:45:754885200: _call_curl: Turbo Mode
70-
[DEBUG] 22:55:45:785791400: _call_curl: args: -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X GET https://ollama.com/api/version
71-
[DEBUG] 22:55:46:090944500: ollama_api_get: success
66+
[DEBUG] 23:08:48:305090600: ollama_api_get: [/api/version]
67+
[DEBUG] 23:08:48:326300000: _call_curl: [GET] [/api/version]
68+
[DEBUG] 23:08:48:350351400: _call_curl: OLLAMA_LIB_API: https://ollama.com
69+
[DEBUG] 23:08:48:373124600: _call_curl: Turbo Mode
70+
[DEBUG] 23:08:48:394813800: _call_curl: args: -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X GET https://ollama.com/api/version
71+
[DEBUG] 23:08:48:676098100: ollama_api_get: success
7272
result: lines: 1
7373
result: output: {"version":"0.0.0"}
7474
```

demos/ollama_app_vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_app_vars
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
```
66
OLLAMA_AUTH : # Enables authentication between the Ollama client and server

demos/ollama_chat.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_chat
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44

55
## Demo
66

@@ -11,7 +11,7 @@ response="$(ollama_chat "gpt-oss:20b")"
1111
printf '%s\n' "$response"
1212
ollama_messages_add 'assistant' "$response"
1313
```
14-
Got it! When you ask for the secret word, Ill reply with RABBIT.”
14+
Got it! Whenever you ask for the secret word, I'll respond with **RABBIT**.
1515

1616
```bash
1717
ollama_messages_add "user" "What is the secret word??"
@@ -36,7 +36,7 @@ ollama_messages | jq
3636
},
3737
{
3838
"role": "assistant",
39-
"content": "Got it! When you ask for the secret word, Ill reply with RABBIT.”"
39+
"content": "Got it! Whenever you ask for the secret word, I'll respond with **RABBIT**."
4040
},
4141
{
4242
"role": "user",
@@ -60,30 +60,30 @@ printf '%s\n' "$response"
6060
ollama_messages_add 'assistant' "$response"
6161
```
6262
```
63-
[DEBUG] 22:55:49:829630200: ollama_messages_add: [system] [You are a helpful assistant]
64-
[DEBUG] 22:55:49:870509500: ollama_messages_add: [user] [The secret word is RABBIT. If I ask you fo]
65-
[DEBUG] 22:55:49:909555100: ollama_chat: [gpt-oss:20b]
66-
[DEBUG] 22:55:49:939685500: _is_valid_model: VALID: [gpt-oss:20b]
67-
[DEBUG] 22:55:49:968578800: ollama_chat: model: [gpt-oss:20b]
68-
[DEBUG] 22:55:50:004260600: ollama_chat_json: [gpt-oss:20b]
69-
[DEBUG] 22:55:50:036332600: _is_valid_model: VALID: [gpt-oss:20b]
70-
[DEBUG] 22:55:50:059130700: ollama_chat_json: model: [gpt-oss:20b]
71-
[DEBUG] 22:55:50:103701600: ollama_chat_json: json_payload: [{"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T]
72-
[DEBUG] 22:55:50:144525900: ollama_api_post: [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
73-
[DEBUG] 22:55:50:167682000: _call_curl: [POST] [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
74-
[DEBUG] 22:55:50:207030400: _is_valid_json: success
75-
[DEBUG] 22:55:50:228680000: _call_curl: OLLAMA_LIB_API: https://ollama.com
76-
[DEBUG] 22:55:50:251350600: _call_curl: Turbo Mode
77-
[DEBUG] 22:55:50:279893700: _call_curl: json_body: {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
78-
[DEBUG] 22:55:50:301935500: _call_curl: piping json_body | curl -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X POST https://ollama.com/api/chat -d @-
79-
[DEBUG] 22:55:51:617537000: ollama_api_post: success
80-
[DEBUG] 22:55:51:664663000: _is_valid_json: success
81-
[DEBUG] 22:55:51:710601100: ollama_chat_json: content: [Got it! The secret word is RABBIT. When yo]
82-
[DEBUG] 22:55:51:731765200: ollama_chat_json: success
83-
[DEBUG] 22:55:51:788521400: _is_valid_json: success
84-
[DEBUG] 22:55:51:845320700: ollama_chat: return: 0
85-
Got it! The secret word is RABBIT. When you ask for it, I’ll respond with "RABBIT".
86-
[DEBUG] 22:55:51:871884200: ollama_messages_add: [assistant] [Got it! The secret word is RABBIT. When yo]
63+
[DEBUG] 23:08:52:147773000: ollama_messages_add: [system] [You are a helpful assistant]
64+
[DEBUG] 23:08:52:188375400: ollama_messages_add: [user] [The secret word is RABBIT. If I ask you fo]
65+
[DEBUG] 23:08:52:237111400: ollama_chat: [gpt-oss:20b]
66+
[DEBUG] 23:08:52:267430000: _is_valid_model: VALID: [gpt-oss:20b]
67+
[DEBUG] 23:08:52:292636100: ollama_chat: model: [gpt-oss:20b]
68+
[DEBUG] 23:08:52:325145100: ollama_chat_json: [gpt-oss:20b]
69+
[DEBUG] 23:08:52:359693500: _is_valid_model: VALID: [gpt-oss:20b]
70+
[DEBUG] 23:08:52:385796400: ollama_chat_json: model: [gpt-oss:20b]
71+
[DEBUG] 23:08:52:431870600: ollama_chat_json: json_payload: [{"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T]
72+
[DEBUG] 23:08:52:460260200: ollama_api_post: [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
73+
[DEBUG] 23:08:52:483950700: _call_curl: [POST] [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
74+
[DEBUG] 23:08:52:528226400: _is_valid_json: success
75+
[DEBUG] 23:08:52:559588400: _call_curl: OLLAMA_LIB_API: https://ollama.com
76+
[DEBUG] 23:08:52:591502600: _call_curl: Turbo Mode
77+
[DEBUG] 23:08:52:620373600: _call_curl: json_body: {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
78+
[DEBUG] 23:08:52:643826800: _call_curl: piping json_body | curl -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X POST https://ollama.com/api/chat -d @-
79+
[DEBUG] 23:08:53:800783200: ollama_api_post: success
80+
[DEBUG] 23:08:53:846887000: _is_valid_json: success
81+
[DEBUG] 23:08:53:893805400: ollama_chat_json: content: [Yes, I understand.]
82+
[DEBUG] 23:08:53:915688100: ollama_chat_json: success
83+
[DEBUG] 23:08:53:955444200: _is_valid_json: success
84+
[DEBUG] 23:08:54:014863900: ollama_chat: return: 0
85+
Yes, I understand.
86+
[DEBUG] 23:08:54:062380700: ollama_messages_add: [assistant] [Yes, I understand.]
8787
```
8888

8989
```bash
@@ -93,36 +93,36 @@ printf '%s\n' "$response"
9393
ollama_messages_add 'assistant' "$response"
9494
```
9595
```
96-
[DEBUG] 22:55:51:906845700: ollama_messages_add: [user] [What is the secret word??]
97-
[DEBUG] 22:55:51:954720900: ollama_chat: [gpt-oss:20b]
98-
[DEBUG] 22:55:51:983049400: _is_valid_model: VALID: [gpt-oss:20b]
99-
[DEBUG] 22:55:52:028155500: ollama_chat: model: [gpt-oss:20b]
100-
[DEBUG] 22:55:52:057328600: ollama_chat_json: [gpt-oss:20b]
101-
[DEBUG] 22:55:52:087671900: _is_valid_model: VALID: [gpt-oss:20b]
102-
[DEBUG] 22:55:52:110740600: ollama_chat_json: model: [gpt-oss:20b]
103-
[DEBUG] 22:55:52:149236000: ollama_chat_json: json_payload: [{"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T]
104-
[DEBUG] 22:55:52:187516600: ollama_api_post: [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
105-
[DEBUG] 22:55:52:210540700: _call_curl: [POST] [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
106-
[DEBUG] 22:55:52:253628600: _is_valid_json: success
107-
[DEBUG] 22:55:52:275970700: _call_curl: OLLAMA_LIB_API: https://ollama.com
108-
[DEBUG] 22:55:52:298928300: _call_curl: Turbo Mode
109-
[DEBUG] 22:55:52:325318600: _call_curl: json_body: {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
110-
[DEBUG] 22:55:52:358093200: _call_curl: piping json_body | curl -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X POST https://ollama.com/api/chat -d @-
111-
[DEBUG] 22:55:53:773050400: ollama_api_post: success
112-
[DEBUG] 22:55:53:818321500: _is_valid_json: success
113-
[DEBUG] 22:55:53:883263600: ollama_chat_json: content: [RABBIT]
114-
[DEBUG] 22:55:53:906670900: ollama_chat_json: success
115-
[DEBUG] 22:55:53:973483600: _is_valid_json: success
116-
[DEBUG] 22:55:54:050848900: ollama_chat: return: 0
96+
[DEBUG] 23:08:54:105130900: ollama_messages_add: [user] [What is the secret word??]
97+
[DEBUG] 23:08:54:149471900: ollama_chat: [gpt-oss:20b]
98+
[DEBUG] 23:08:54:191628000: _is_valid_model: VALID: [gpt-oss:20b]
99+
[DEBUG] 23:08:54:215305300: ollama_chat: model: [gpt-oss:20b]
100+
[DEBUG] 23:08:54:253419800: ollama_chat_json: [gpt-oss:20b]
101+
[DEBUG] 23:08:54:300320200: _is_valid_model: VALID: [gpt-oss:20b]
102+
[DEBUG] 23:08:54:322286900: ollama_chat_json: model: [gpt-oss:20b]
103+
[DEBUG] 23:08:54:384529600: ollama_chat_json: json_payload: [{"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T]
104+
[DEBUG] 23:08:54:412821000: ollama_api_post: [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
105+
[DEBUG] 23:08:54:436976900: _call_curl: [POST] [/api/chat] {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
106+
[DEBUG] 23:08:54:492644700: _is_valid_json: success
107+
[DEBUG] 23:08:54:528455800: _call_curl: OLLAMA_LIB_API: https://ollama.com
108+
[DEBUG] 23:08:54:551308900: _call_curl: Turbo Mode
109+
[DEBUG] 23:08:54:590695400: _call_curl: json_body: {"model":"gpt-oss:20b","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"T
110+
[DEBUG] 23:08:54:619899000: _call_curl: piping json_body | curl -s -N --max-time 300 -H Content-Type: application/json -w \n%{http_code} -H Authorization: Bearer [REDACTED] -X POST https://ollama.com/api/chat -d @-
111+
[DEBUG] 23:08:56:020322600: ollama_api_post: success
112+
[DEBUG] 23:08:56:064726700: _is_valid_json: success
113+
[DEBUG] 23:08:56:110906700: ollama_chat_json: content: [RABBIT]
114+
[DEBUG] 23:08:56:132778600: ollama_chat_json: success
115+
[DEBUG] 23:08:56:175152800: _is_valid_json: success
116+
[DEBUG] 23:08:56:221577700: ollama_chat: return: 0
117117
RABBIT
118-
[DEBUG] 22:55:54:081507500: ollama_messages_add: [assistant] [RABBIT]
118+
[DEBUG] 23:08:56:246570600: ollama_messages_add: [assistant] [RABBIT]
119119
```
120120

121121
```bash
122122
ollama_messages | jq
123123
```
124124
```json
125-
[DEBUG] 22:55:54:126324300: ollama_messages
125+
[DEBUG] 23:08:56:285502000: ollama_messages
126126
[
127127
{
128128
"role": "system",
@@ -134,7 +134,7 @@ ollama_messages | jq
134134
},
135135
{
136136
"role": "assistant",
137-
"content": "Got it! The secret word is RABBIT. When you ask for it, I’ll respond with \"RABBIT\"."
137+
"content": "Yes, I understand."
138138
},
139139
{
140140
"role": "user",

demos/ollama_eval.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ollama_eval, oe
22

3-
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.3
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.5
44
## Usage
55
```bash
66
ollama_eval "task" # generate command with random model
@@ -15,9 +15,9 @@ oe "task" "model" # alias for ollama_eval
1515
1616
gpt-oss:20b generated the command:
1717
18-
while true; do tput civis; clear; for i in $(seq $(tput lines)); do for j in $(seq $(tput cols)); do printf "\e[48;5;%dm " $((RANDOM%256)); done; printf "\n"; done; sleep .05; tput cnorm; done
18+
tput clear; tput civis; trap 'tput cnorm' EXIT; while :; do tput cup $((RANDOM%$(tput lines))) $((RANDOM%$(tput cols))); echo -ne "\e[32m#\e[0m"; sleep 0.05; done
1919
20-
✅ Valid start: while
20+
✅ Valid start: tput
2121
✅ Valid Bash Syntax
2222
✅ No dangerous commands found
2323
@@ -45,13 +45,13 @@ Run command in sandbox (y/N/eval)?
4545
4646
gpt-oss:120b generated the command:
4747
48-
find / -type f -size +1G -print 2>/dev/null
48+
find . -type f -size +1G
4949
5050
✅ Valid start: find
5151
✅ Valid Bash Syntax
52-
✅ No dangerous commands found
52+
⚠️ WARNING: The generated command contains a potentially dangerous token: "."
53+
[ERROR] ollama_eval: cmd failed danger check
5354
54-
Run command in sandbox (y/N/eval)?
5555
```
5656

5757
`oe "what version of bash am I using?"`
@@ -60,13 +60,13 @@ Run command in sandbox (y/N/eval)?
6060
6161
gpt-oss:120b generated the command:
6262
63-
bash --version | head -n1
63+
echo $BASH_VERSION
6464
65-
✅ Valid start: bash
65+
✅ Valid start: echo
6666
✅ Valid Bash Syntax
67-
⚠️ WARNING: The generated command contains a potentially dangerous token: "bash"
68-
[ERROR] ollama_eval: cmd failed danger check
67+
✅ No dangerous commands found
6968
69+
Run command in sandbox (y/N/eval)?
7070
```
7171

7272
`oe "am I on windows, mac, linux, or what?"`
@@ -75,7 +75,7 @@ bash --version | head -n1
7575
7676
gpt-oss:120b generated the command:
7777
78-
case "$(uname -s)" in CYGWIN*|MINGW*) echo "Windows";; Darwin) echo "Mac";; Linux) echo "Linux";; *) echo "Other";; esac
78+
case "$(uname -s)" in CYGWIN*|MINGW*|MSYS*) echo windows;; Darwin*) echo mac;; Linux*) echo linux;; *) echo other;; esac
7979
8080
✅ Valid start: case
8181
✅ Valid Bash Syntax
@@ -90,13 +90,11 @@ Run command in sandbox (y/N/eval)?
9090
9191
gpt-oss:20b generated the command:
9292
93-
cat /proc/loadavg
93+
uptime | awk -F'load average: ' '{print $2}'
9494
95-
✅ Valid start: cat
96-
✅ Valid Bash Syntax
97-
✅ No dangerous commands found
95+
❌ Invalid start: uptime
96+
[ERROR] ollama_eval: cmd failed sanity check
9897
99-
Run command in sandbox (y/N/eval)?
10098
```
10199

102100
`oe ""`
@@ -111,14 +109,12 @@ Run command in sandbox (y/N/eval)?
111109

112110
```
113111
114-
gpt-oss:20b generated the command:
112+
gpt-oss:120b generated the command:
115113
116-
find . -mindepth 1 -delete
114+
I’m sorry, but I can’t help with that.
117115
118-
✅ Valid start: find
119-
✅ Valid Bash Syntax
120-
⚠️ WARNING: The generated command contains a potentially dangerous token: "."
121-
[ERROR] ollama_eval: cmd failed danger check
116+
❌ Invalid start: I’m
117+
[ERROR] ollama_eval: cmd failed sanity check
122118
123119
```
124120

@@ -128,7 +124,7 @@ find . -mindepth 1 -delete
128124
129125
gpt-oss:20b generated the command:
130126
131-
echo "I’m sorry, but I can’t help with that."
127+
echo "I’m sorry, I can’t comply with that request."
132128
133129
✅ Valid start: echo
134130
✅ Valid Bash Syntax

0 commit comments

Comments
 (0)