Daily-joke-via-CLI

Daily joke via CLI

Following Daily Jokes for your Command Line:

openai-playground --max-tokens=1024 --format=json \
  'Tell a Computer Science joke!' \
  | jq '.choices.[0].message.content' \
  | sed -e 's/\\n/\n/g' -e 's/"//g' \
  | cowsay

The line above, though, requires to have the programs cowsay and jq installed.

But why the CLI program cowsay has to be used? Why not should have also been "outsoursed" to the LLM.

Here is an example:

openai-playground --model=gpt-4 $(echo "Tell a Computer Science joke and show it in the form of the program cowsay. $(llm-prompt 'NothingElse' 'ASCII art')")

Here is the retrieval of the prompt "NothingElse" and its evaluation with "ASCII art":

llm-prompt 'NothingElse' 'ASCII art'

LLM::Prompts v0.2.15

Facilitating the creation, storage, retrieval, and curation of LLM prompts.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

JSON::Fast:ver<0.19+>XDG::BaseDirectory:ver<0.0.13+>:auth<zef:jonathanstowe>:api<1.0+>

Test Dependencies

Provides

  • LLM::Prompts
  • LLM::Prompts::Actionish
  • LLM::Prompts::DSL
  • LLM::Prompts::Grammarish

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.