Skip to content

v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Nov 17:13
· 4 commits to main since this release
0a2b7d3

decide reads images, audio, video, and PDFs. Gemini Decision joins the
providers, OpenAI reads images, and any template takes a file you name.

Added

  • Media files with any template. A text template also takes an image,
    audio, video, or PDF file that you name, on a provider that reads it.
    Folders still give a text template text only (#111).
  • One way to attach files from Go. decide.WithMedia attaches an image,
    PDF, audio clip, or video the same way on every provider. A provider that
    can't read it returns errors.ErrUnsupported before sending anything.
  • Gemini Decision. --provider gemini and backend.Gemini run
    gemini-decision-1 through Google's Gemini Decisions API, in beta. Set
    GEMINI_API_KEY.
  • Images on OpenAI. Image templates such as receipt-quality run with
    --provider openai.
  • Audio, video, and PDFs on Gemini. Templates can read audio, video,
    or pdf files. The new
    invoice-check template checks PDF invoices.
  • Media runs send two files at once unless --workers says otherwise,
    and a request that sends a file may take up to 5 minutes, so large
    uploads finish.
  • Image templates follow your credentials. With no --provider, they
    run on Cloudflare, OpenAI, or Gemini, whichever has a key set. OpenAI and
    Gemini take images far larger than Clef's 4 MiB.
  • decide models. Checks that your provider accepts your credentials
    and lists the names you can pass to --model. A missing or rejected key
    names the variable to fix.
  • Template tutorial. Write a project template, preview its inputs,
    and read saved answers on support tickets.
  • Go tutorial. Turn a typed answer into allow, review, or escalate
    with a policy that stays in your code.
  • Security tutorial. Rank the demo's functions with security, then
    confirm candidates with Claude Code's /decide:audit.
  • Docs for agents. llms.txt, Markdown reference pages, and a guide to
    running Decide from an agent.

Changed

  • Media helpers removed. cloudflare.SetImages, openai.SetImages, and
    gemini.SetMedia are gone; use decide.WithMedia. A []byte anywhere in
    state or an Extra value is rejected, and a media attempt that times out
    is not retried.
  • A new landing page. Why a decision model, which returns a value and
    its probability instead of text, suits the quick calls a script makes on
    every item, where it runs in CI, hooks and queues, what decide adds to
    the model, the Claude Code plugin, and how close calls go to a person.
  • Shorter docs. The tutorials and reference pages say less, the
    tutorials drop their numbered layout, and shell examples have no $
    prompt.
  • --help names what each flag takes, such as --limit N and
    --include PATTERN, so flags that take a value stand out.

Fixed

  • decide runs resume key hint. A missing key no longer suggests --dry-run, which runs resume does not have.
  • Text templates never read PDFs, images, or other binary files as text,
    from files or stdin. A media file named to a text template says which
    template reads it. A folder's skipped files are reported in one line
    for each reason.
  • Media runs skip files decide rejects itself, such as a corrupt JPEG,
    and those files never stop a run. Errors for a file that is too large or
    a missing key name the providers that work.
  • Media runs hold less memory. A dry run or --sample no longer reads
    every file into memory. An unreadable file in a folder is skipped.
  • Media in the docs and plugin. Providers lists which provider reads
    which files, the quickstart and recipes show how to judge a screenshot or
    PDF, and the plugin's judge tool says it reads text only.