Skip to content

Commit 6a69fed

Browse files
committed
v0.45.1
1 parent 8523717 commit 6a69fed

35 files changed

+874
-1214
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Run LLM prompts straight from your shell. Command line access to the ghost in th
2323
[Howto](#howto) :
2424
[Get Tech Support](#howto-get-technical-support) -
2525
[Chat](#howto-chat) -
26+
[Use Tools](#howto-use-tools) -
2627
[Use Turbo Mode](#howto-use-ollama-turbo-mode) -
2728
[Debug](#howto-debug)
2829

@@ -31,7 +32,7 @@ Run LLM prompts straight from your shell. Command line access to the ghost in th
3132
[Helper](#helper-functions) -
3233
[Generate](#generate-functions) -
3334
[Chat](#chat-functions) -
34-
[Tools](#tools-functions) -
35+
[Tools](#tool-functions) -
3536
[Model](#model-functions) -
3637
[Ollama](#ollama-functions) -
3738
[Lib](#lib-functions) -
@@ -260,8 +261,7 @@ The response will look something like this:
260261
}
261262
}
262263
]
263-
},
264-
...
264+
}
265265
}
266266
```
267267

@@ -365,7 +365,7 @@ To run all demos and save output to Markdown files: [demos/run.demos.sh](demos/r
365365
| `ollama_messages_count`<br />`omco` | Count of messages in chat context | `ollama_messages_count` | number of messages to `stdout` | `0`/`1` |
366366
| `ollama_messages_clear`<br />`omc` | Clear all messages in chat context | `ollama_messages_clear` | none | `0`/`1` |
367367

368-
### Tools Functions
368+
### Tool Functions
369369

370370
| Function<br />Alias | About | Usage | Output | Return |
371371
|----------------------------------|-------------------------------------|--------------------------------------------------------------------|----------------------------|---------------------------------------------|

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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44

55
| test | output | return | result |
66
|------|--------|--------|--------|
77
| `mistral:7b` | mistral:7b | 0 | ✅ PASS |
8-
| `` | gpt-oss:20b | 0 | ✅ PASS |
8+
| `` | gpt-oss:120b | 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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44

55
## Demo
66

77
```bash
88
ollama_lib_version
99
```
10-
0.45.0
10+
0.45.1
1111

1212
```bash
1313
ollama_lib_about
1414
```
1515
```
16-
Ollama Bash Lib v0.45.0
16+
Ollama Bash Lib v0.45.1
1717
A Bash Library to interact with Ollama
1818
1919
OLLAMA_LIB_NAME : Ollama Bash Lib
20-
OLLAMA_LIB_VERSION : 0.45.0
20+
OLLAMA_LIB_VERSION : 0.45.1
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: 21 additions & 2 deletions
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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44
## Testing -h for all functions (first argument)
55

66
`ollama_api_get -h`
@@ -425,51 +425,61 @@ Usage: ollama_app_version_json
425425

426426
`ollama_app_version_cli -h`
427427
```
428+
ollama_app_version_cli - Ollama App version, CLI version
428429
Usage: ollama_app_version_cli
429430
```
430431

431432
`oavc -h`
432433
```
434+
ollama_app_version_cli - Ollama App version, CLI version
433435
Usage: ollama_app_version_cli
434436
```
435437

436438
`ollama_thinking -h`
437439
```
440+
ollama_thinking - Ollama Thinking Mode
438441
Usage: ollama_thinking [on|off|hide]
439442
```
440443

441444
`ot -h`
442445
```
446+
ollama_thinking - Ollama Thinking Mode
443447
Usage: ollama_thinking [on|off|hide]
444448
```
445449

446450
`ollama_lib_about -h`
447451
```
452+
ollama_lib_about - About Ollama Bash Lib
448453
Usage: ollama_lib_about
449454
```
450455

451456
`olab -h`
452457
```
458+
ollama_lib_about - About Ollama Bash Lib
453459
Usage: ollama_lib_about
454460
```
455461

456462
`ollama_lib_version -h`
457463
```
464+
ollama_lib_version - Ollama Bash Lib version
458465
Usage: ollama_lib_version
459466
```
460467

461468
`olv -h`
462469
```
470+
ollama_lib_version - Ollama Bash Lib version
463471
Usage: ollama_lib_version
464472
```
465473

466474
`ollama_eval -h`
467475
```
476+
ollama_eval - Command Line Eval
468477
Usage: ollama_eval "task" "[model]"
469478
```
470479

471480
`oe -h`
472481
```
482+
ollama_eval - Command Line Eval
473483
Usage: ollama_eval "task" "[model]"
474484
```
475485

@@ -897,51 +907,60 @@ Usage: ollama_app_version_json
897907

898908
`ollama_app_version_cli --help`
899909
```
910+
ollama_app_version_cli - Ollama App version, CLI version
900911
Usage: ollama_app_version_cli
901912
```
902913

903914
`oavc --help`
904915
```
916+
ollama_app_version_cli - Ollama App version, CLI version
905917
Usage: ollama_app_version_cli
906918
```
907919

908920
`ollama_thinking --help`
909921
```
922+
ollama_thinking - Ollama Thinking Mode
910923
Usage: ollama_thinking [on|off|hide]
911924
```
912925

913926
`ot --help`
914927
```
928+
ollama_thinking - Ollama Thinking Mode
915929
Usage: ollama_thinking [on|off|hide]
916930
```
917931

918932
`ollama_lib_about --help`
919933
```
934+
ollama_lib_about - About Ollama Bash Lib
920935
Usage: ollama_lib_about
921936
```
922937

923938
`olab --help`
924939
```
940+
ollama_lib_about - About Ollama Bash Lib
925941
Usage: ollama_lib_about
926942
```
927943

928944
`ollama_lib_version --help`
929945
```
946+
ollama_lib_version - Ollama Bash Lib version
930947
Usage: ollama_lib_version
931948
```
932949

933950
`olv --help`
934951
```
952+
ollama_lib_version - Ollama Bash Lib version
935953
Usage: ollama_lib_version
936954
```
937955

938956
`ollama_eval --help`
939957
```
958+
ollama_eval - Command Line Eval
940959
Usage: ollama_eval "task" "[model]"
941960
```
942961

943962
`oe --help`
944963
```
964+
ollama_eval - Command Line Eval
945965
Usage: ollama_eval "task" "[model]"
946966
```
947-

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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44
```
55
66
ollama_messages_count: 0

demos/ollama_api_get.md

Lines changed: 1 addition & 1 deletion
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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44

55
## Setup
66

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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
44

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

demos/ollama_chat.md

Lines changed: 5 additions & 5 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.0
3+
A [demo](../README.md#demos) of [Ollama Bash Lib](https://github.com/attogram/ollama-bash-lib) v0.45.1
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-
Yes, understood. The secret word is RABBIT.
14+
Got it.
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": "Yes, understood. The secret word is RABBIT."
39+
"content": "Got it."
4040
},
4141
{
4242
"role": "user",
@@ -60,7 +60,7 @@ printf '%s\n' "$response"
6060
ollama_messages_add 'assistant' "$response"
6161
```
6262
```
63-
I understand.
63+
I understand. If you ask for the secret word, I’ll respond with **RABBIT**.
6464
```
6565

6666
```bash
@@ -88,7 +88,7 @@ ollama_messages | jq
8888
},
8989
{
9090
"role": "assistant",
91-
"content": "I understand."
91+
"content": "I understand. If you ask for the secret word, I’ll respond with **RABBIT**."
9292
},
9393
{
9494
"role": "user",

0 commit comments

Comments
 (0)