buzz
buzz copied to clipboard
Decisions: support OpenAI Decisions API as a provider alongside TypeSafe
Problem
Settings > Decisions API only accepts a TypeSafe API key. The buzz.typesafe plugin calls a fixed endpoint (https://api.typesafe.ai/v1/systemone), with no way to choose a different provider or base URL. Teams that already use OpenAI can't use their own key for Attention, agents, and plugins that rely on decisions.
Proposal
Add OpenAI as a second Decisions provider:
- Provider picker in Settings > Decisions API: TypeSafe (default) or OpenAI.
- OpenAI option takes an API key (and an optional base URL, for OpenAI-compatible proxies) and calls
POST /v1/decisions(docs), default modelgpt-6-luna.
Why it should be small
Buzz's internal DecisionsRequest already models the same question types OpenAI uses (predicate, choice with options, score with levels), and the backend already validates answers, readouts and probabilities. The OpenAI backend would mostly be a request/response mapping to input + questions -> answers.
Related
- #8015 (System One decision model for thread addressing) would benefit from provider choice.
- #3798 / #5909 added OpenAI-compatible base URLs for agents; Decisions has no equivalent.
Happy to send a PR if this direction is welcome.