Repository navigation
Conversation
Adds POST /v1/apps/:app/ai/decisions to the app AI REST reference and a Decisions models section to the model catalog. Marked internal staging trial, REST-only, no customer production availability. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying fliplet-cli with
|
| Latest commit: |
7187d0f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0d79851c.fliplet-cli.pages.dev |
| Branch Preview URL: | https://feature-dev-2189-decisions-d.fliplet-cli.pages.dev |
|
|
||
| ### Decisions models | ||
|
|
||
| [POST /v1/apps/:app/ai/decisions](/REST-API/fliplet-ai#decisions) accepts only the ID below. It is an internal trial on staging, available through REST only, with no JavaScript method. |
There was a problem hiding this comment.
Is it really going to be limited to staging? I'm happy with it being available on production too.
tonytlwu
left a comment
There was a problem hiding this comment.
Code review (via /fliplet-pr-review)
Requested documentation clarification: question names are optional.
Review basis: subject=5b3dbc415b3519dd667f372a67912dc43cd4bae7 standards=fliplet-engineering@0.18.0 revision=d8c727a0419f9d87a6e38a767a4b95b84380cc44+dirty source=fliplet-pr-review digest=sha256:40c49b60a8bd5384
| | --- | --- | --- | | ||
| | `model` | Yes | Must be `gpt-6-luna`. Fliplet rejects a missing or different model with `400` and has no fallback. | | ||
| | `input` | Yes | Shared evidence: a string, or user messages containing text and inline base64 image data URLs. OpenAI rejects non-user roles, tools, audio, files and hosted image URLs. | | ||
| | `questions` | Yes | Array of questions, each with `type`, `instructions` and `name`. | |
There was a problem hiding this comment.
name is optional in OpenAI's Decisions contract. This table currently makes it appear required, although the response section correctly documents name: null for unnamed questions. Please make the optionality explicit; no Fliplet validation rule is needed.
| | `questions` | Yes | Array of questions, each with `type`, `instructions` and `name`. | | |
| | `questions` | Yes | Array of questions, each with `type`, `instructions` and optional `name`. | |
Reference: https://developers.openai.com/api/reference/resources/decisions/methods/create
|
Accepted documentation clarifications from Tony for DEV-2189: Billing: retain input-only Decisions billing, matching this endpoint's provider pricing. Please qualify the current blanket claim that every successful call is charged. Suggested wording: “For apps subject to AI credit metering, Decisions charges are calculated from input tokens only. Failed or timed-out requests are not charged. Existing V2 metering rules remain unchanged.” Do not present an HTTP 200 as proof that deferred credit settlement has completed. Missing provider usage or accounting failures remain observable engineering exceptions; the public reference does not need queue implementation details. Retry guidance: replace “don't retry 4xx errors without changing the request” with guidance specific to the outcome:
Production API availability is accepted independently of documentation publication. Keep this docs PR unpublished until publication is chosen, but update its staging-only availability wording to match the intended production API release. The optional question-name correction is already captured in the inline comment; no need to duplicate it. |
The endpoint is now available through REST (still no Fliplet.AI wrapper). Pricing stays marked as provisional. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tony has agreed the following consumer-facing billing wording. Please replace the current blanket claims that every successful call/every caller is charged in
Retain the credit precheck / This updates the billing wording requested in the earlier review comment. The optional question |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Product areas affected
Developer docs:
docs/REST-API/fliplet-ai.md,docs/API/core/ai/models.md.What does this PR do?
Documents
POST /v1/apps/:app/ai/decisions:It's REST only, with no
Fliplet.AIwrapper, and pricing is marked provisional. OpenAI's rates (2× over 272K input tokens, +10% for regional processing) are noted. Also adds a "Decisions models" section (gpt-6-lunaonly, no fallback) to the model catalog.JIRA ticket
DEV-2189
Result
Every status code and error
typein the docs was checked against the API branch and against real local calls (the usage example matches what OpenAI actually returns).Deployment instructions
None. Hold merge until we decide to publish (see top).
Author concerns
The curl example uses the production host. The earlier staging-host note is gone now that the endpoint isn't staging-only.
🤖 Generated with Claude Code