Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xyproto/fortunecraft
Craft fortunes using Gemma2 (2B)
https://github.com/xyproto/fortunecraft
ai art command-line-utility fortune fortune-mod fun gemma2 llm llms ollama utility
Last synced: 23 days ago
JSON representation
Craft fortunes using Gemma2 (2B)
- Host: GitHub
- URL: https://github.com/xyproto/fortunecraft
- Owner: xyproto
- License: apache-2.0
- Created: 2024-02-20T20:52:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-02T23:49:21.000Z (about 1 month ago)
- Last Synced: 2024-10-14T02:40:31.655Z (24 days ago)
- Topics: ai, art, command-line-utility, fortune, fortune-mod, fun, gemma2, llm, llms, ollama, utility
- Language: Go
- Homepage:
- Size: 2.03 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FortuneCraft
Output fortunes by using Ollama and the text generation model selected with [`llm-manager`](https://github.com/xyproto/llm-manager).
`fortunecraft` has a very different selection of fortunes compared to the good old `fortune` program.
One of the goals for this utility is to be a proof of concept for an Arch Linux package that depends on a model that in turn depends on Ollama.
### Requirements
Requires an Ollama server to be up and running, and the selected model to be able to run / be evaluated, in terms of CPU and memory. Using a GPU is optional.
* `OLLAMA_HOST` can be used to set a different host address than `localhost:11434` for the Ollama server.
### Installation
go install github.com/xyproto/fortunecraft@latest
Then place `~/go/bin` in the `PATH`, or install `~/go/bin/fortunecraft` somewhere else, if you want.
### Example output
```
./fortunecraft
The best way to predict the future is to invent it.β― ./fortunecraft
The future is a tapestry woven with threads of chance and choice.β― fortunecraft -giz
Yeet your fears to the wind π¬οΈπ You're boutta slay.β― ./fortunecraft -eNb
Resistance is futile!
```### Flags
```
Available Flags:
-a, --absurd Be absurd
-B, --boomer Boomer style
-b, --borg Make it about Borg
-c, --cats Make it about cats
-o, --computer Make it about computers
-D, --delusional Be delusional
-d, --dogs Make it about dogs
-e, --evil Be evil
-f, --fantasy Make it about fantasy
-z, --genz Make it more Gen Z
-g, --good Be good
-N, --inappropriate Be inappropriate
-i, --inspire Be inspirational
-t, --international Be international
-I, --ironic Be ironic
-k, --keyword string Specify a custom keyword
-1, --leet 1337 style
-l, --logical Make it more logical
-n, --ninja Make it about ninjas
-O, --old Use language from 100 years ago
-p, --pirate Write like a pirate
-P, --political Be political
-y, --pony Make it about ponies
-A, --praise Fill it with praise
-r, --robot Make it about robots
-R, --romantic Add a romantic touch to the fortune
-s, --sarcastic Generate a sarcastic fortune
-C, --scifi Make it sci-fi related
-u, --user Make it about the current user
-V, --version Output the current version
-w, --weird Be weirdExamples:
fortunecraft -giz - Generate good inspirational GenZ fortunes
fortunecraft -eNb - Generate evil inappropriate Borg fortunes
fortunecraft -gaCy - Generate good absurd sci-fi fortunes about ponies
fortunecraft -iep - Generate inspirational evil pirate fortunes
fortunecraft -sPB - Generate sarcastic political boomer fortunes
fortunecraft -I -k AI - Generate ironic fortunes about AI
```### General info
* Version: 1.8.1
* License: Apache 2
* Author: Alexander F. RΓΈdseth <[email protected]>