Skip to content

Commit 7a72137

Browse files
committed
1 parent e48e7c4 commit 7a72137

File tree

4 files changed

+16
-403
lines changed

4 files changed

+16
-403
lines changed

README.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,22 @@ source ollama_bash_lib.sh
4949
ollama_generate "mistral:7b" "Describe Bash in 3 words"
5050
# Powerful, Flexible, Scripting.
5151

52-
# Command line assist
53-
oe "find all files larger then 10GB"
54-
# Command:
55-
#
56-
# find . -type f -size +10G
57-
#
58-
# Run command (y/n)?
59-
6052
# Tab completion to view available library functions
61-
ollama_<TAB>
62-
# ollama_api_get ollama_chat_stream ollama_list_json
63-
# ollama_api_ping ollama_chat_stream_json ollama_messages
64-
# ollama_api_post ollama_eval ollama_messages_add
65-
# ollama_app_installed ollama_generate ollama_messages_clear
66-
# ollama_app_turbo ollama_generate_json ollama_messages_count
67-
# ollama_app_vars ollama_generate_stream ollama_model_random
68-
# ollama_app_version ollama_generate_stream_json ollama_model_unload
69-
# ollama_app_version_cli ollama_lib_about ollama_ps
70-
# ollama_app_version_json ollama_lib_version ollama_ps_json
71-
# ollama_chat ollama_list ollama_show
72-
# ollama_chat_json ollama_list_array ollama_show_json
53+
ollama_<TAB><TAB>
54+
# ollama_api_get ollama_generate ollama_messages_last_json
55+
# ollama_api_ping ollama_generate_json ollama_model_random
56+
# ollama_api_post ollama_generate_stream ollama_model_unload
57+
# ollama_app_installed ollama_generate_stream_json ollama_ps
58+
# ollama_app_turbo ollama_lib_about ollama_ps_json
59+
# ollama_app_vars ollama_lib_version ollama_show
60+
# ollama_app_version ollama_list ollama_show_json
61+
# ollama_app_version_cli ollama_list_array ollama_thinking
62+
# ollama_app_version_json ollama_list_json ollama_tools
63+
# ollama_chat ollama_messages ollama_tools_add
64+
# ollama_chat_json ollama_messages_add ollama_tools_clear
65+
# ollama_chat_stream ollama_messages_clear ollama_tools_count
66+
# ollama_chat_stream_json ollama_messages_count ollama_tools_is_call
67+
# ollama_eval ollama_messages_last ollama_tools_run
7368
```
7469

7570
## Usage
@@ -303,7 +298,6 @@ See the **[demos](demos)** directory for all demo scripts
303298
| [review.lib-security.md](demos/review.lib-security.md) | Security Review of [`ollama_bash_lib.sh`](ollama_bash_lib.sh) | [review.lib.sh](demos/review.lib-security.sh) |
304299
| [review.readme.md](demos/review.readme.md) | Marketing Review of this [`README.md`](README.md) | [review.readme.sh](demos/review.readme.sh) |
305300
| [review.funny.md](demos/review.funny.md) | Humorous project descriptions based on [`README.md`](README.md) | [review.funny.sh](demos/review.funny.sh) |
306-
| [ollama_eval.md](demos/ollama_eval.md) | Command line assistant with `oe` and `ollama_eval` | [ollama_eval.sh](demos/ollama_eval.sh) |
307301
| [prompt.all.models.md](demos/prompt.all.models.md) | Send a prompt to all models | [prompt.all.models.sh](demos/prompt.all.models.sh) |
308302
| [prompts.model.md](demos/prompts.model.md) | Send many prompts to a model | [prompts.model.sh](demos/prompts.model.sh) |
309303
| [ollama_chat.md](demos/ollama_chat.md) | Chat completion with [`ollama_messages_add`](#chat-functions) and [`ollama_chat`](#chat-functions) | [ollama_chat.sh](demos/ollama_chat.sh) |
@@ -337,12 +331,6 @@ To run all demos and save output to Markdown files: [demos/run.demos.sh](demos/r
337331
| `ollama_api_post`<br />`oap` | POST request to the Ollama API | `ollama_api_post "/api/path" "{ json content }"` | API call result to `stdout` | `0` API call success<br />`1` API call error |
338332
| `ollama_api_ping`<br />`oapi` | Ping the Ollama API | `ollama_api_ping` | none | `0` API is reachable<br />`1` API is not reachable |
339333

340-
### Helper Functions
341-
342-
| Function<br />Alias | About | Usage | Output | Return |
343-
|--------------------------|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|--------|---------|
344-
| `ollama_eval`<br />`oe` | Generates a bash one-liner and prompts user permission to run it<br />If no model specified, uses a random model | `ollama_eval "task" "model"`<br />`ollama_eval "task"` | | `0`/`1` |
345-
346334
### Generate Functions
347335

348336
| Function<br />Alias | About | Usage | Output | Return |
@@ -429,7 +417,6 @@ To run all demos and save output to Markdown files: [demos/run.demos.sh](demos/r
429417
* `shuf` - for `ollama_model_random`
430418
* `sort` - for sorting lists
431419
* `column` - for `ollama_lib_about` output formatting
432-
* `timeout` - for `ollama_eval` syntax checking
433420

434421
If you don't have any of the optional requirements, the function `ollama_app_installed` is always available.
435422

demos/ollama_eval.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

demos/ollama_eval.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)