Skip to content

Tags

Tags

v0.2.0

Toggle v0.2.0's commit message

Verified

This commit was signed with the committer’s verified signature.
kataras Gerasimos (Makis) Maropoulos
Add Jev 1.14 support: box questions, image input, long context

Box is a new question type that locates one thing in an image. jev.Box sends {"type":"box","instructions":...} with no criteria, and the answer decodes to BoxAnswer: four edges as fractions of the image plus a confidence, with Rect(width, height) for pixel cropping. Response.Box, Client.Box and Client.BoxAs follow the existing patterns. The encoder rejects a box without an image in the request, and the decoder enforces the documented contract (edges in 0..1, left below right, top above bottom).

Images ride along with any request. ImageFile, ImageBytes and ImageReader wrap a PNG or JPEG (sniffed by file signature; 16 MiB per file) and the *Image can sit anywhere a string can: state values, instructions, choice options, struct fields, slices. TextOf mentions an image inside a sentence. Collection happens through encoding/json/v2 marshalers, so no tree walk is needed and pre-encoded state keeps working. Each image becomes a content-hash reference under a top-level assets map, the body goes out as multipart/form-data with a content-derived boundary so encoding stays deterministic, the same image used twice uploads once, and the TypeSafe-Danger-Zone-Images header is added automatically. The whole body is capped at 32 MiB. Debug logs show the JSON part only. The rate limiter no longer counts image bytes as tokens; it reserves a flat 1,600 tokens per image and settles with real usage.

WithLongContext(true) sends TypeSafe-Danger-Zone-Long-Context, raising the limits from 64k per request and 32k per question to 262k tokens. It works on New and as a per-call option and is off by default because the API documents it as slower and less accurate.

Model names are now constants: ModelLatest, ModelPreview, ModelJev114, ModelJev113. The default stays jev-latest, which resolves to 1.13.0 today and moves to 1.14.0 about a week after the 2026-10-14 release; until then box questions need WithModel(jev.ModelPreview), and the docs say so.

README, package doc, the agent skill (SKILL.md, api.md) and a new examples/box program cover all of it. TestLiveBox exercises a real box answer on a generated image; it passed against jev-1.14.0 with the box within six pixels of the drawn rectangle. Version 0.2.0.

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was signed with the committer’s verified signature.
kataras Gerasimos (Makis) Maropoulos
Initial Release. kataras x jev