Coder Social home page Coder Social logo

ooo's Introduction

OOO

Prompt Ollama from the command line either through the stdin or just as a normal prompt.
You need to have Ollama installed in order to use ooo.

Examples:

$ ls -lah | ooo I will give you an input from the terminal command ls -lah, can you take the filenames and use them as keys in a json format, and the value for each key is the permissions, far left

Or you can use the --user flag to specify another order of the input.

$ ls -lah | ooo --model llama2 --user "I'll give you an input from the terminal command 'ls -lah', can you take the filenames and use them as keys in a json format, and the value for each key is the permissions, far left"

Output:

{
".": "drwxr-xr-x",
"..": "drwxr-xr-x",
".git": "drwxr-xr-x",
".gitignore": "-rw-r--r--",
"Cargo.lock": "-rw-r--r--",
"Cargo.toml": "-rw-r--r--",
"README.md": "-rw-r--r--",
"src": "drwxr-xr-x",
"target": "drwxr-xr-x"
}

Or just do normal prompting.

$ ooo whats the tallest building\?
$ ooo --user "whats the tallest building?"

Output:

The tallest building in the world is the Burj Khalifa, located in Dubai, United Arab Emirates. Its height is 828 meters (2,716 feet)

Install

brew tap nictap/tap
brew install ooo

Options

Flag Default
--user ''
--system (see below)
--model mistral
--port 11434
--url http://localhost

System default

"You are a command-line program that takes an input and provides an output ONLY. Give me only the output, without any additional labels (e.g., 'Output' or 'Result'). The output should be usable as input in another program that is not an LLM. Avoid unnecessary chat. No preamble, get straight to the point. Generate a text response suitable for downstream processing by another program. Do not change the content of the input unless specifically asked to. Do not repeat back the input."


(ooo isn't an acronym for anything, just easy to type. Lets say it's "Ollama -something")

ooo's People

Contributors

npahlfer avatar

Stargazers

Hidemi Yukita avatar Magnus Lislevatn  avatar Martín Cigorraga avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.