Skip to content

Command-line client for Ollama with markdown support

Notifications You must be signed in to change notification settings

knoopx/ollamark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ollamark

ollamark is a command-line client for Ollama with markdown support.

Install ollamark using your preferred package manager (bun is recommended).

Installation

npm install -g https://github.com/knoopx/ollamark

Usage

Usage: ollamark run [options] <prompt...>

Execute a prompt

Options:
  --html                     treat input as html
  --json                     output in json
  -m, --model <string>       model name (partial match supported)
  -s, --system <string>      system prompt
  -t, --temp <value>         temperature
  -n, --num-pred <value>     number of predictions
  -C, --ctx <value>          context length
  -r, --response             only print response
  -W, --print-width <chars>  print width (default: "100")
  -h, --help                 display help for command

Examples

# coding assistance
ollamark -m magicoder "how to loop a javascript array"

# parsing text
ollamark -m hermes "2x eggs, 1x chicken breast" --json -s "{ items: {name: string; quantity: number }[] }"

# git commit message
git diff | ollamark -t 0.3  -m hermes "one-line summary of the changes" -r

Demo

asciicast

About

Command-line client for Ollama with markdown support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published