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
This commit includes several fixes and updates to the documentation and demo scripts to improve consistency and correctness.
The changes include:
- Adding documentation for the `ollama_messages_last` and `ollama_messages_last_json` functions in `docs/functions.md` and creating their individual doc files.
- Correcting the alias for `ollama_messages_clear` from `omc` to `omclear` in `docs/aliases.md`.
- Updating the function lists in `demos/function.help.sh` and `demos/function.versions.sh` to be complete and accurate, which involved adding `ollama_chat_json`, `ollama_messages_last`, and `ollama_messages_last_json`.
- Re-running the `demos/run.demos.sh` script to regenerate the demo markdown files with the corrected function lists, eliminating "command not found" errors.
- Deleting stray `help.md` and `messages.md` files from the root directory.
These changes ensure that the documentation is up-to-date and that the demo scripts run without errors.
Copy file name to clipboardExpand all lines: docs/functions.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ This file contains a full list of all functions available in the Ollama Bash Lib
31
31
|[`ollama_messages_add`](ollama_messages_add.md)<br />`oma`| Add a message to chat context |`ollama_messages_add -r "role" -c "message"`| none |`0`/`1`|
32
32
|[`ollama_messages_count`](ollama_messages_count.md)<br />`omco`| Count of messages in chat context |`ollama_messages_count`| number of messages to `stdout`|`0`/`1`|
33
33
|[`ollama_messages_clear`](ollama_messages_clear.md)<br />`omc`| Clear all messages in chat context |`ollama_messages_clear`| none |`0`/`1`|
34
+
|[`ollama_messages_last`](ollama_messages_last.md)| Get content of the last message as a string |`ollama_messages_last`| string to `stdout`|`0`/`1`|
35
+
|[`ollama_messages_last_json`](ollama_messages_last_json.md)| Get the last message as JSON |`ollama_messages_last_json`| json to `stdout`|`0`/`1`|
0 commit comments