@@ -10,11 +10,6 @@ Implements version 1.3 of the SDK specification (`SPEC_VERSION` is `"1.3"`).
1010
1111### Added
1212
13- - Several places in one answer: ` point() ` and ` box() ` take ` max ` (2 to 16), and the
14- answer is a ` PointsAnswer ` or ` BoxesAnswer ` (` count ` , ` present ` , ` complete ` , ` points `
15- of ` PointPlace ` or ` boxes ` of ` BoxPlace ` , ` image ` , ` width ` , ` height ` ), told by its own
16- list, in the order and numbers sent. ` max ` (a whole number from 2 to 16) is checked
17- before sending; whether a model version answers several places is the API's to say.
1813- Boosters: ` boosters ` on ` decide ` , ` check ` , ` classify ` , ` score ` , ` number ` , ` gate ` ,
1914 ` decide_many ` requests, batch requests and ` check_request ` , as booster names,
2015 ` Booster(name, images, require, options) ` objects (sent as ` {"name": ...} ` with each
@@ -29,25 +24,6 @@ Implements version 1.3 of the SDK specification (`SPEC_VERSION` is `"1.3"`).
2924 booster this version does not know or with a field missing or of the wrong type. ` None `
3025 when the request named no boosters.
3126- ` Decision.usage.booster_tokens ` and ` Decision.usage.boosters ` (` None ` when absent).
32- - The readings of the ` ocr ` , ` face_detection ` and ` face_recognition ` boosters: ` OcrReading `
33- (` text ` , ` truncated ` ), ` FaceDetectionReading ` (` faces ` , ` detections ` of ` FaceDetection `
34- with a ` FaceBox ` and a ` confidence ` ) and ` FaceRecognitionReading ` (` faces ` , ` matches ` of
35- ` FaceMatch ` with a ` FaceBox ` , a ` score ` , the ` collection ` searched, the item's
36- ` reference ` , and ` name ` or ` label ` , ` None ` when absent). Box corners are kept as
37- received. A malformed reading is an ` UnknownReading ` .
38- - Collections of faces, as ` dn.collections ` : ` create ` , ` list ` , ` get ` , ` delete ` , ` enroll `
39- (one face from one image, sent as a decision's image is), ` list_items ` and
40- ` delete_item ` , each returning the API's object as sent. ` create ` and ` enroll ` send an
41- ` Idempotency-Key ` , a new UUID per call and the same on every attempt of it, so the API
42- creates, enrolls and bills once; they retry like any call, and also while the API
43- reports the first attempt still running (a 409 ` idempotency_in_progress ` , after its
44- ` Retry-After ` ). A 409 ` idempotency_key_reused ` is raised and never retried. A
45- collection's type and name, an item's reference and label and the items list's ` offset `
46- and ` limit ` are checked before anything is sent; of the picture only a URL's rules are,
47- every other fault is the API's 422 ` image_unreadable ` .
48- - A decision whose boosters name ` ocr ` waits 30 seconds per attempt unless a ` timeout ` was
49- set on the client, and is never retried after a timeout, since the server finishes that
50- attempt and may bill it; its other retries stay.
5127- ` Usage.cost ` : what the answer cost in USD, a ` Cost ` (` usd ` , ` model_usd ` , ` boosters_usd ` ,
5228 ` free_tier ` ) read as sent, on decisions, batch result lines, a session's open and frame
5329 replies; ` None ` when absent, never zeros.
0 commit comments