Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10960,6 +10960,7 @@ components:
- 'box'
type: 'object'
DecisionsBoxQuestion:
description: 'Finds one target in an image in `state` and answers with one bounding box (`top`, `bottom`, `left`, `right` as fractions of the image). Served by TypeSafe Jev endpoints only; every other provider rejects a box question with `400` before anything is sent upstream.'
properties:
instructions:
anyOf:
Expand All @@ -10968,7 +10969,7 @@ components:
type: 'object'
- items: {}
type: 'array'
description: 'A plain string, or a JSON object or array of structured guidance.'
description: 'A description of the target to find, naming the image in `state` it is in; not a command, and no `criteria`.'
type:
enum:
- 'box'
Expand Down Expand Up @@ -11107,7 +11108,7 @@ components:
assets:
additionalProperties:
$ref: '#/components/schemas/DecisionsImageAsset'
description: 'Images keyed by reference string, as in TypeSafe''s API. Write a reference wherever the image belongs in `state`, `instructions`, or `criteria`; every asset must be referenced at least once. Jev reads a reference as a whole string value or inside longer text. Other Decisions models read a whole-string reference wherever they read an `image_url` part and reject a reference inside longer text.'
description: 'Images keyed by reference string, as in TypeSafe''s API. Write a reference wherever the image belongs in `state`, `instructions`, or `criteria`; every asset must be referenced at least once, or the request fails with `400` naming the unused key. TypeSafe Jev endpoints receive `assets` as written and read a reference as a whole string value or inside longer text. Every other provider has each whole-string reference resolved to an `image_url` part before the request is sent, so it is accepted only where that provider reads `image_url` parts (top-level `state` items), and a reference inside longer text fails with `400`. `image_url` parts and `assets` can be mixed in one request.'
type: 'object'
model:
type: 'string'
Expand Down Expand Up @@ -36452,7 +36453,7 @@ paths:
- 'Analytics'
/api/alpha/decisions:
post:
description: 'Submits a Decisions request to the Decisions router'
description: 'Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.'
operationId: 'createApiAlphaDecisions'
requestBody:
content:
Expand Down
Loading